home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / pplite.zip / PROLITE.DOC < prev    next >
Text File  |  1991-03-25  |  249KB  |  5,837 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                            T H E   P R O G R A M M E R ' S
  7.                           ---------------------------------
  8.  
  9.  
  10.                           P R O D U C T I V I T Y    P A C K
  11.                          ------------------------------------
  12.  
  13.  
  14.                                     *  L I T E  *
  15.                                    ---------------
  16.  
  17.  
  18.                                      Version 1.01
  19.                                     --------------
  20.  
  21.  
  22.  
  23.                                U S E R ' S    G U I D E
  24.                               --------------------------
  25.  
  26.  
  27.  
  28.                     Copyright (c) 1988-1991 by Falk Data Systems.
  29.                                  All Rights Reserved.
  30.  
  31.  
  32.                               Last updated:  March, 1991
  33.  
  34.  
  35.                                   Falk Data Systems
  36.                                  5322 Rockwood Court
  37.                               El Paso, Texas  79932-2412
  38.                                         U.S.A.
  39.  
  40.  
  41.                                 Voice:  (915) 584-7670
  42.                                  FAX:  (915) 584-1540
  43.                                 CompuServe: 71420,2431
  44.  
  45.  
  46.                                  _______            
  47.                             ____|__     |                (R)
  48.                          --|       |    |-------------------
  49.                            |   ____|__  |  Association of  
  50.                            |  |       |_|  Shareware       
  51.                            |__|   o   |    Professionals   
  52.                          -----|   |   |---------------------
  53.                               |___|___|    MEMBER       
  54.  
  55.  
  56.                                   ---  CONTENTS  ---
  57.  
  58.  
  59.           General Information ........................................... 1
  60.  
  61.             The Programmer's Productivity Pack Lite (ProLite) ..........  1
  62.             License ....................................................  1
  63.             Warranty ...................................................  1
  64.             Registration ...............................................  1
  65.             Technical Support ..........................................  1
  66.             ASP Ombudsman Statement ....................................  2
  67.             Obtaining Updates ..........................................  3
  68.             Trademarks Mentioned .......................................  4
  69.  
  70.           Introduction .................................................  5
  71.             What is ProLite? ...........................................  5
  72.             System Requirements ........................................  6
  73.             Memory Requirements ........................................  7
  74.             How To Use This Manual .....................................  7
  75.  
  76.           How to Install ProLite ........................................ 9
  77.             Which Files Do I Need?  . . . . . . . . . . . . . . . . . . . 9
  78.             Installing On A Hard Disk System ...........................  9
  79.             Installing On A Floppy Disk System ......................... 10
  80.             Setting ProLite For Your Monitor ........................... 11
  81.             The 80 Column Text Mode .................................... 12
  82.             The Modifier Keys .......................................... 12
  83.             ProLite and Your Keyboard .................................. 12
  84.  
  85.           How To Load And Unload ProLite ............................... 14
  86.             Using ProLite .............................................. 14
  87.               Loading ProLite .......................................... 15
  88.               ProLite Command Line Options ............................. 16
  89.               ProLite as a Stand-Alone Program ......................... 20
  90.               Renaming PROLITE.EXE ..................................... 21
  91.             Unloading ProLite .......................................... 21
  92.             Sidekick Considerations .................................... 21
  93.             The DOS PRINT Program ...................................... 23
  94.             In Case of Conflicts With Other Memory-Resident Programs ... 23
  95.             ProLite and Batch Files .................................... 24
  96.             ProLite Error Messages ..................................... 24
  97.               Beeps and Doesn't Pop Up ................................. 25
  98.               Doesn't Beep or Pop Up ................................... 25
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.           Table of Contents                                               i
  113.  
  114.  
  115.                                   ---  CONTENTS  ---
  116.  
  117.  
  118.           The Programmer's Calculator and Attachments .................. 27
  119.  
  120.           The Programmer's Calculator .................................. 27
  121.             The Quick Start Tutorial ................................... 27
  122.             The In-Depth Reference Guide ............................... 34
  123.               The Range Of Values Available ............................ 34
  124.               The Programmer's Calculator Display ...................... 35
  125.               The Quick Reference Menu ................................. 36
  126.               Signed And Unsigned Modes ................................ 36
  127.               The Four Numeric Formats ................................. 37
  128.               The Calculator Commands .................................. 37
  129.               The Mathematical Operations .............................. 41
  130.               Logical and Bit Manipulation Operations .................. 43
  131.               Moving The Calculator's Display .......................... 45
  132.               Going To The Attachments ................................. 45
  133.  
  134.           The ASCII and Color Attribute Chart .......................... 47
  135.             The Quick Start Tutorial ................................... 47
  136.             The In-Depth Reference Guide ............................... 49
  137.               25, 43, And 50 Line Screens .............................. 49
  138.               The Columns On The Chart ................................. 49
  139.               The Extended Characters .................................. 50
  140.               Moving Around The Chart .................................. 50
  141.               Other Available Commands ................................. 51
  142.               Returning to the Calculator .............................. 51
  143.  
  144.           The Keystroke Reference Center ............................... 52
  145.             The Quick Start Tutorial ................................... 52
  146.             The In-Depth Reference Guide ............................... 55
  147.               How To Access The Keystroke Reference Center ............. 56
  148.               The Display .............................................. 56
  149.               Scan Codes and INKEY() Values ............................ 57
  150.               Portability Notes ........................................ 58
  151.               Moving the Display ....................................... 58
  152.               Other Available Commands ................................. 59
  153.  
  154.           Park Disk(s) and Blank Screen ................................ 60
  155.             The In-Depth Reference Guide ............................... 60
  156.  
  157.           PCustom: The Customizing Program ............................. 62
  158.             The Quick Start Tutorial ................................... 62
  159.             The In-Depth Reference Guide ............................... 64
  160.               Starting PCustom ......................................... 64
  161.               How PCustom Works ........................................ 64
  162.               The PCustom Menus ........................................ 65
  163.               The Main Menu ............................................ 65
  164.                 The Colors Menu ........................................ 65
  165.                 The Hot Keys Menu ...................................... 72
  166.                 The Sound Effects Menu ................................. 73
  167.                 The Advanced Options Menu .............................. 74
  168.                 The Exit PCustom Menu .................................. 78
  169.  
  170.  
  171.           Table of Contents                                              ii
  172.  
  173.  
  174.                                   ---  CONTENTS  ---
  175.  
  176.  
  177.           Miscellaneous Information .................................... 78
  178.             Change History ............................................. 78
  179.  
  180.           Appendix A
  181.             The Bits and the Bytes. .................................... 79
  182.  
  183.           Appendix B
  184.             Understanding Two's Complement Numbers ..................... 88
  185.  
  186.           Appendix C
  187.             What is Falk Data Systems? ................................. 90
  188.             Other Products From Falk Data Systems ...................... 90
  189.  
  190.           Index ........................................................ 91
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.           Table of Contents                                             iii
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.                                        Figures
  241.  
  242.  
  243.           Figure  1: Programmer's Calculator Display ................... 35
  244.           Figure  2: The Quick Reference Menu .......................... 36
  245.           Figure  3: Decimal Box Display ............................... 42
  246.           Figure  4: ASCII Chart Display ............................... 49
  247.           Figure  5: Keystroke Reference Center Display ................ 57
  248.           Figure  6: PCustom Main Menu ................................. 65
  249.           Figure  7: PCustom Colors Menu ............................... 65
  250.           Figure  8: Custom Colors Submenu ............................. 67
  251.           Figure  9: Calculator Sub-Submenu ............................ 68
  252.           Figure 10: Customize Hot Keys Submenu ........................ 72
  253.           Figure 11: Hot Keys Submenu .................................. 73
  254.           Figure 12: Sound Effects Submenu ............................. 73
  255.           Figure 13: Advanced Options Submenu .......................... 74
  256.           Figure 14: Miscellaneous Sub-Submenu ......................... 77
  257.           Figure 15: Exit PCustom Submenu .............................. 78
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.           Table of Contents                                              vi
  290.  
  291.  
  292.                      - Programmer's Productivity Pack Lite 1.01 -
  293.  
  294.  
  295.                                 ---------------------
  296.                                  General Information
  297.                                 ---------------------
  298.  
  299.  
  300.           The Programmer's Productivity Pack (ProPak):
  301.           ============================================
  302.  
  303.           "The Programmer's Productivity Pack Lite" is a very long title!
  304.           To help keep things brief we will often refer to the Programmer's
  305.           Productivity Pack Lite as "ProLite".  When we use the word
  306.           "ProLite" as a shortened form of "Programmer's Productivity Pack
  307.           Lite" we are referring to the entire package and all the programs
  308.           in the package (including ProLite and PCustom).
  309.  
  310.  
  311.           License:
  312.           ========
  313.  
  314.           The Programmer's Productivity Pack Lite is NOT a public domain
  315.           program.  It is Copyright (c) 1988, 1989,1990 by Falk Data
  316.           Systems.
  317.  
  318.           Please refer to the LICENSE.DOC text file for important license
  319.           information.
  320.  
  321.  
  322.           Warranty:
  323.           =========
  324.  
  325.           Please refer to the WARRANTY.DOC text file for important warranty
  326.           information.
  327.  
  328.  
  329.           Registration:
  330.           =============
  331.  
  332.           Please refer to the REGISTER.DOC text file for complete
  333.           registration information.
  334.  
  335.  
  336.           Technical Support:
  337.           ==================
  338.  
  339.           Free technical support is available to all registered users of
  340.           the Programmer's Productivity Pack Lite.
  341.  
  342.           If you are a registered user and have a question, problem, or
  343.           need help in any way, please feel free to contact us for
  344.           technical support.  We are here to help you.  Falk Data Systems
  345.           wants its customers to be happy with our products.  We will do
  346.  
  347.  
  348.           General Information                                       1 of 94
  349.  
  350.  
  351.                      - Programmer's Productivity Pack Lite 1.01 -
  352.  
  353.  
  354.           our best to help you get the most out of the Programmer's
  355.           Productivity Pack Lite.
  356.  
  357.           If you are not yet a registered user, please read the
  358.           REGISTER.DOC text file for complete registration information and
  359.           a list of benefits for registered users.
  360.  
  361.           Most technical support questions are answered in the ProLite
  362.           User's Guide (this document).  So before contacting us for
  363.           technical support, please try to find the answer to your question
  364.           in the User's Guide.  Please check the ANSWERS.DOC text file for
  365.           the answers to the most commonly asked questions regarding
  366.           ProLite.  If you are unable to find the information you need,
  367.           then please feel free to contact us.  Perhaps you've come across
  368.           something that should be included in the User's Guide in the
  369.           future.
  370.  
  371.           The best way to obtain technical support is through CompuServe.
  372.           You may send CompuServe Mail messages to us on CompuServe
  373.           [71420,2431].  We check our messages every working day, and
  374.           frequently on weekends too.  If you are not a CompuServe
  375.           subscriber be sure to check the appropriate box on your
  376.           registration form and we will provide you with a free CompuServe
  377.           Introductory Membership and a $15.00 usage credit.
  378.  
  379.           You may also obtain technical support by writing or calling Falk
  380.           Data Systems.  Registered users may call our technical support
  381.           line at (915) 584-7670.  Our hours are 9:00 am to 5:00 pm,
  382.           Mountain time, Monday through Friday.
  383.  
  384.           Please refer to page 90 for our address and other phone numbers.
  385.  
  386.  
  387.           ASP Ombudsman Statement:
  388.           ========================
  389.  
  390.           Falk Data Systems is a member of the Association of Shareware
  391.           Professionals (ASP).  ASP wants to make sure that the shareware
  392.           principle works for you.  If you are unable to resolve a
  393.           shareware-related problem with an ASP member by contacting the
  394.           member directly, ASP may be able to help.  The ASP Ombudsman can
  395.           help you resolve a dispute or problem with an ASP member, but
  396.           does not provide technical support for members' products.  Please
  397.           write to the ASP Ombudsman at P.O. Box 5786, Bellevue, WA 98006
  398.           or send a CompuServe message via easyplex to ASP Ombudsman
  399.           70007,3536.
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.           General Information                                       2 of 94
  408.  
  409.  
  410.                      - Programmer's Productivity Pack Lite 1.01 -
  411.  
  412.  
  413.           Obtaining Updates:
  414.           ==================
  415.  
  416.           Distributing a new version of a shareware product can be more
  417.           expensive than most people realize.  Hundreds of disks must be
  418.           sent to shareware distributors, computer user groups, clubs and
  419.           organizations, magazine editors, and more.  This is in addition
  420.           to sending copies to any registered users who are entitled to the
  421.           new version.  The process is costly not only in postage, but also
  422.           in time and energy.  Therefore, we don't always send out updates
  423.           and modifications to all the usual channels.  This is one of the
  424.           reasons registered users are often able to acquire updates and
  425.           new versions long before non-registered users.
  426.  
  427.           Another reason why registered users are often able to receive
  428.           updates months before non-registered users is because of the lead
  429.           time involved in updating the catalogs of the disk vendors.  Most
  430.           disk vendors update their catalogs every 1-3 months (depending
  431.           upon the frequency of catalog releases).  This means that even
  432.           after a vendor receives an update it may be several months before
  433.           you find out about it.  If you happen to miss a catalog issue or
  434.           overlook an update notice then it could take even longer for you
  435.           to find out about an update.
  436.  
  437.           When we release a new version it is sent FIRST to all registered
  438.           users who are entitled to the new version.  Their copy goes in
  439.           the mail even before copies to magazine editors and columnists.
  440.           Some versions are sent ONLY to registered users and NOT to anyone
  441.           else.
  442.  
  443.           Unless you are a registered user, you have no reliable way of
  444.           knowing whether you have the most current version or an older,
  445.           less capable version.  This clearly shows yet another benefit to
  446.           becoming a registered user.
  447.  
  448.           When you become a registered user of ProLite, we will send you
  449.           the most current version on disk in a sealed envelope along with
  450.           other material.
  451.  
  452.           Registered users also receive free notification of all future
  453.           updates and the opportunity to receive them automatically, at a
  454.           substantially reduced cost.  Please refer to the REGISTER.DOC
  455.           text file for complete details.
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.           General Information                                       3 of 94
  467.  
  468.  
  469.                      - Programmer's Productivity Pack Lite 1.01 -
  470.  
  471.  
  472.           Trademarks Mentioned:
  473.           =====================
  474.  
  475.           Falk Data Systems, ProPak, ProSwap, the Programmer's Productivity
  476.           Pack, ProLite, and the Programmer's Productivity Pack Lite are
  477.           trademarks of Falk Data Systems.
  478.  
  479.           BRIEF is a trademark of UnderWare, Inc.
  480.  
  481.           CompuServe is a trademark of CompuServe Incorporated.
  482.  
  483.           dBASE is a trademark of Ashton-Tate, Inc.
  484.  
  485.           DESQview is a trademark of Quarterdeck Office Systems.
  486.  
  487.           Hercules is a registered trademark of Hercules
  488.           Computer Technology, Inc.
  489.  
  490.           IBM, PC-DOS, PC/XT/AT and PS/2 are registered trademarks of
  491.           International Business Machines Corporation.
  492.  
  493.           Microsoft and MS-DOS are trademarks or registered trademarks of
  494.           Microsoft Corporation.
  495.  
  496.           OPTASM is a registered trademark of SLR Systems.
  497.  
  498.           TaskView and OmniView are trademarks of Sunny Hill Software.
  499.  
  500.           Periscope is a trademark of The Periscope Company.
  501.  
  502.           Solution Systems is a trademark of the Software
  503.           Developer's Corporation.
  504.  
  505.           Turbo Professional is a registered trademark of Sunny
  506.           Hill Software, used under license to TurboPower
  507.           Software.
  508.  
  509.           TurboPower Software is a trademark of TurboPower Software.
  510.  
  511.           Turbo Pascal, Turbo Assembler, Turbo Debugger, Sidekick and
  512.           SideKick Plus are registered trademarks of Borland International.
  513.  
  514.           WordStar is a registered trademark of MicroPro International
  515.           Corporation.
  516.  
  517.           Some of the trademarks of other companies mentioned in this
  518.           user's guide appear for identification purposes only.
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.           General Information                                       4 of 94
  526.  
  527.  
  528.                      - Programmer's Productivity Pack Lite 1.01 -
  529.  
  530.  
  531.                                     --------------
  532.                                      Introduction
  533.                                     --------------
  534.  
  535.  
  536.           What is ProLite?
  537.           ================
  538.  
  539.           ProLite is a subset of the larger Programmer's Productivity Pack
  540.           (ProPak).  The complete Programmer's Productivity Pack is also
  541.           available on a try-before-you-buy basis.  Please refer to the
  542.           PRODUCTS.DOC text file for more information.
  543.  
  544.           The Programmer's Productivity Pack Lite, ProLite, is a software
  545.           package designed to provide the utilities and reference tools
  546.           most frequently needed by programmers.  What's more, each
  547.           individual tool or "attachment" within the ProLite package was
  548.           designed to be the best, most powerful, most flexible, and
  549.           easiest to use in its category.
  550.  
  551.           For instance, The Programmer's Calculator, which is only one of
  552.           the tools built into ProLite, is the best Programmer's Calculator
  553.           on the market, bar none!  Integrating all of these tools into one
  554.           program and placing them at your disposal at one time will make
  555.           the time you spend programming more productive than ever.
  556.  
  557.           ProLite provides you with:
  558.           ~~~~~~~~~~~~~~~~~~~~~~~~~~
  559.  
  560.               o  A Programmer's Calculator that works simultaneously in
  561.                  decimal, binary, hexadecimal, and octal.
  562.  
  563.               o  Addition, subtraction, multiplication, integer division,
  564.                  and modulus mathematical functions.
  565.  
  566.               o  SHL, SHR, ROL, ROR, SAL, SAR, RCL, RCR bit manipulation
  567.                  functions.
  568.  
  569.               o  AND, NOT, OR, and XOR logical functions.
  570.  
  571.               o  Exchange word and exchange double word functions.
  572.  
  573.               o  An ASCII and color attribute chart.
  574.  
  575.               o  A keystroke reference utility that returns both the BIOS
  576.                  scan codes and the dBASE INKEY() values.
  577.  
  578.               o  A screen blanking facility that will park your hard disk
  579.                  (or disks) while the screen is blanked.
  580.  
  581.  
  582.  
  583.  
  584.           Introduction                                              5 of 94
  585.  
  586.  
  587.                      - Programmer's Productivity Pack Lite 1.01 -
  588.  
  589.  
  590.               o  A pop-up DOS shell capability which enables you to shell
  591.                  to DOS from any program, with as much as 600K bytes of
  592.                  memory available in the DOS shell.
  593.  
  594.               o  Complete control of all the Hot Keys, colors, sound
  595.                  effects, file extensions, memory usage, and more, through
  596.                  PCustom, the customizing program.
  597.  
  598.           All this and more.  All in one smoothly integrated package.  The
  599.           Programmer's Productivity Pack Lite includes tools which can run
  600.           stand-alone, memory-resident (even with Sidekick), memory-
  601.           resident with swapping, or as a background task in a multitasking
  602.           environment.  And since ProLite provides you with the ability to
  603.           customize every detail, it not only helps you to be more
  604.           productive, it also gives you the freedom to adapt it to your
  605.           particular needs and preferences.
  606.  
  607.           The Programmer's Productivity Pack Lite can handle dual monitor
  608.           systems, EMS and XMS memory, multitasking systems like DESQview
  609.           and TaskView/OmniView, and more.  ProLite can be easily and
  610.           safely unloaded from memory when the need arises.  You even have
  611.           three different methods by which it may be unloaded.
  612.  
  613.           The Programmer's Productivity Pack Lite is even compatible with
  614.           Borland's Sidekick.  It is so compatible that it can be safely
  615.           loaded AFTER Sidekick.
  616.  
  617.           All things considered, the Programmer's Productivity Pack Lite
  618.           should become one of your most often used utilities, and you
  619.           might find yourself wondering how you ever got along without it.
  620.           Congratulations on one of your best software acquisitions!
  621.  
  622.           System Requirements:
  623.           --------------------
  624.  
  625.           The Programmer's Productivity Pack Lite requires PC/MS-DOS 2.0 or
  626.           higher, on an IBM PC, XT, AT, PS/2, or close compatible.  ProLite
  627.           will work on a floppy disk only system, but a hard disk is
  628.           recommended.
  629.  
  630.           ProLite supports all common video adapter and monitor
  631.           combinations, including dual monitor systems.  ProLite has been
  632.           tested with the following adapter types:  MDA, CGA, EGA, MCGA,
  633.           and VGA, as well as the Hercules and Hercules InColor cards.
  634.  
  635.           EMS and/or XMS memory is helpful but not required.
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.           Introduction                                              6 of 94
  644.  
  645.  
  646.                      - Programmer's Productivity Pack Lite 1.01 -
  647.  
  648.  
  649.           Memory Requirements:
  650.           --------------------
  651.  
  652.           The actual  memory requirements will vary depending upon how
  653.           swapping is handled, the amount of memory you reserve for the
  654.           Pop-Up DOS Shell, etc.
  655.  
  656.           When loaded in swapping mode, ProLite retains only about 7K bytes
  657.           of memory while resident (and swapped out).
  658.  
  659.           The customizing program, PCustom, requires 256K bytes of RAM.
  660.  
  661.           ProLite.EXE:
  662.           ~~~~~~~~~~~~
  663.           ProLite uses as little memory as possible.  ProLite can swap
  664.           itself to disk, to EMS memory, or to XMS memory.  All this
  665.           flexibility means that ProLite is ideal when memory is scarce.
  666.  
  667.           How To Use This Manual:
  668.           -----------------------
  669.  
  670.           This manual is designed to get you up and running with the
  671.           Programmer's Productivity Pack Lite as quickly as possible.
  672.           Besides being written in a simple, conversational style there are
  673.           five special features which will help you get the most from
  674.           ProLite in the minimum amount of time.
  675.  
  676.           The Quick Start Tutorials:
  677.           ~~~~~~~~~~~~~~~~~~~~~~~~~~
  678.              The "Quick Start Tutorials" are designed to help you begin
  679.              using the individual tools in the Programmer's Productivity
  680.              Pack Lite in an efficient and productive manner as quickly as
  681.              possible.
  682.  
  683.              Each Quick Start Tutorial is complete in itself.  This means
  684.              that they don't have to be read together or in any particular
  685.              order.  Each tutorial should take about 15 minutes or less to
  686.              complete.  Although the tutorials don't cover every single
  687.              feature of the program in detail, they will get you
  688.              comfortable and familiar with the major functions in each tool
  689.              quickly and painlessly.  It would be to your benefit to read
  690.              the Quick Start Tutorials, even if you never looked at the
  691.              rest of the manual.  They will help you get your money's worth
  692.              out of this software package.  Take advantage of them.  You'll
  693.              be glad you did!
  694.  
  695.              Since ProLite was written to be easy to learn and use (to be
  696.              "intuitive") you will probably find that the Quick Start
  697.              Tutorials are all you will need to start working profitably
  698.              with it.
  699.  
  700.  
  701.  
  702.           Introduction                                              7 of 94
  703.  
  704.  
  705.                      - Programmer's Productivity Pack Lite 1.01 -
  706.  
  707.  
  708.           The In-Depth Reference Guides:
  709.           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  710.              The In-Depth Reference Guides in the ProLite User's Guide
  711.              cover each one of the tools and utilities individually.  As
  712.              the name implies, this is where you can find a complete
  713.              listing and description of each and every feature of that tool
  714.              or program.  Every command and option will be given, along
  715.              with any necessary information on how and when to use it.
  716.  
  717.              The In-Depth Reference Guides contain a tremendous amount of
  718.              helpful information and we suggest that you consult them.
  719.              They are written in the same simple, conversational style and
  720.              should be just as comfortable to read as the tutorials.
  721.  
  722.           Tips and Tricks:
  723.           ~~~~~~~~~~~~~~~~
  724.              Wherever we have been able to develop helpful tips and tricks
  725.              to make the use of ProLite even more efficient we have put
  726.              them in the User's Guide and marked them with "TIP:".  Using
  727.              these techniques does not require any more expertise than
  728.              using any other feature of the program.  They are just the
  729.              by-product of the many hours the author, beta-testers, and
  730.              users have spent using the program.  In future upgrades we
  731.              will include any other tips that we find or develop or that
  732.              you bring to our attention.  Our desire is to provide you with
  733.              the best tools and documentation possible.
  734.  
  735.           The Appendices:
  736.           ~~~~~~~~~~~~~~~
  737.              There are three appendices following the User's Guide that
  738.              will be of special value to any of you that are new to
  739.              programming.  They may even help some of you old pros to fill
  740.              in a few gaps in your understanding.  We have endeavored to
  741.              make ProLite a useful tool for both the student and the
  742.              professional programmer.
  743.  
  744.           The Index:
  745.           ~~~~~~~~~~
  746.              The Index at the back of the User's Guide is as comprehensive
  747.              as we could make it without overwhelming you with unnecessary
  748.              references.
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.           Introduction                                              8 of 94
  762.  
  763.  
  764.                      - Programmer's Productivity Pack Lite 1.01 -
  765.  
  766.  
  767.                                -----------------------
  768.                                 How to Install ProLite
  769.                                -----------------------
  770.  
  771.  
  772.           Which Files Do I Need?:
  773.           =======================
  774.  
  775.           The following discussion outlines the files included in the
  776.           Programmer's Productivity Pack Lite.
  777.  
  778.           ProLite.EXE:  This is the flexible-loading version (called
  779.           ProSwap in the full size Programmer's Productivity Pack).
  780.           ProLite can run as a memory-resident "swapping" version, a
  781.           standard memory-resident version, a background task under
  782.           DESQview or OmniView/TaskView, or as a stand-alone program under
  783.           MS-DOS.
  784.  
  785.           PCustom.EXE:  This is the customizing program which will enable
  786.           you to customize ProLite.
  787.  
  788.           The customizing program does not need to be present to make
  789.           changes to the program "on the fly".  You can change some items
  790.           (such as Hot Keys) while ProLite is actually loaded in memory.
  791.           The customizing program DOES have to be used if you want the
  792.           changes to be "permanent".  That is, written to disk and
  793.           available to you the next time you turn on your computer.
  794.           Changes made from within ProLite are not "permanent" because they
  795.           are made in memory and will be lost when you unload ProLite or
  796.           turn off your computer.  Both methods of customizing are simple
  797.           to use whenever needed.
  798.  
  799.           We recommend that both ProLite.EXE and PCustom.EXE be placed in
  800.           the same subdirectory on your hard disk, or on the same diskette
  801.           on floppy disk-only systems.
  802.  
  803.           By the way, PCustom, the customizing program, is not required for
  804.           the operation of ProLite, but it is nice to have on hand.  Unless
  805.           disk space is at a premium, keep it available at all times.
  806.  
  807.           We have also provided a file called "ANSWERS.DOC", which answers
  808.           the most commonly asked questions concerning the use of the
  809.           Programmer's Productivity Pack Lite.
  810.  
  811.  
  812.           Installing On A Hard Disk System:
  813.           =================================
  814.  
  815.           The first step, which should be taken BEFORE you install the
  816.           programs on your hard disk, is to make backup copies.  This is a
  817.           very important safety measure which you should take with every
  818.  
  819.  
  820.           Installing ProLite                                        9 of 94
  821.  
  822.  
  823.                      - Programmer's Productivity Pack Lite 1.01 -
  824.  
  825.  
  826.           new program.  This protects your investment in case a disk
  827.           becomes damaged or erased.  We provide extra labels with the
  828.           registered version for you to place on your backup copies.
  829.           Finally, we recommend that you use the  copies as "working
  830.           copies" and place the original diskettes in a safe place.
  831.  
  832.           Installing the Programmer's Productivity Pack Lite on your hard
  833.           disk is simply a matter of deciding which files you want to copy
  834.           to your hard disk, and which subdirectory you want to place them
  835.           in.
  836.  
  837.           Running an actual "installation" program is not required.  Any
  838.           one of the two programs will run fine.  There is no "PInstall"
  839.           program.
  840.  
  841.           PCustom enables you to customize various features of the program,
  842.           but it is not necessary in order to get ProLite up and running.
  843.           In fact, ProLite is sophisticated enough to determine for itself
  844.           if you are using a color or monochrome monitor, EMS memory, etc.
  845.           We should add however, that if you are using a black-and-white
  846.           monitor, such as an LCD or gas plasma display, or other gray
  847.           scale type of monitor, you will probably want to run PCustom to
  848.           change the screen colors to the gray scale values.  This is
  849.           covered in the section "Setting ProLite For Your Monitor" (page
  850.           11).  ProLite is already set to look good on monochrome and color
  851.           monitors.
  852.  
  853.  
  854.           Installing On A Floppy Disk System:
  855.           ===================================
  856.  
  857.           Because ProLite uses swapping to conserve memory, we recommend
  858.           that it be run from a hard disk rather than from the slower
  859.           floppy diskette drives.  But, if you do not have a hard disk,
  860.           don't worry.  You can still use the Programmer's Productivity
  861.           Pack Lite.  To take advantage of its swapping capabilities,
  862.           however, you will need either a hard disk, or sufficient EMS or
  863.           XMS memory for swapping purposes.
  864.  
  865.           As with every software product you purchase, your first step
  866.           should be to make backup copies of the distribution diskettes.
  867.           This will protect your investment in case something unexpected
  868.           happens to the original diskettes.  We provide (with the
  869.           registered version) printed labels for you to place on your
  870.           backup copies.  Finally, we recommend that you use the backup
  871.           diskettes as the "working copy" and place the original diskettes
  872.           in a safe place.
  873.  
  874.           We recommend that you include PCustom on each ProLite diskette.
  875.           This way you will be able to customize the program whenever you
  876.           wish.  However, PCustom is not required for ProLite to run.
  877.  
  878.  
  879.           Installing ProLite                                       10 of 94
  880.  
  881.  
  882.                      - Programmer's Productivity Pack Lite 1.01 -
  883.  
  884.  
  885.           Running an actual "installation" program is not required.  Any
  886.           one of the two programs will run fine.  There is no "PInstall"
  887.           program.
  888.  
  889.           PCustom enables you to customize various features of ProLite, but
  890.           it is not necessary in order to get ProLite up and running.  In
  891.           fact, ProLite is sophisticated enough to determine for itself if
  892.           you are using a color or monochrome monitor, etc.  We should add
  893.           however, that if you are using a black-and-white monitor, such as
  894.           an LCD or gas plasma display, or another gray scale type of
  895.           monitor, you will probably want to run PCustom to change the
  896.           screen colors to the gray scale values.  This is covered in the
  897.           next section "Setting ProLite For Your Monitor".  ProLite is
  898.           already set to look good on monochrome and color monitors.
  899.  
  900.           If you are new to MS-DOS and are not sure how to copy files from
  901.           one disk to another, then please consult your DOS manual to
  902.           familiarize yourself with DOS and to answer any questions that
  903.           may arise.
  904.  
  905.  
  906.           Setting ProLite For Your Monitor:
  907.           =================================
  908.  
  909.           You do not have to do anything to set up ProLite for your monitor
  910.           if you are using either a color or monochrome monitor.  ProLite
  911.           is sophisticated enough to know which one you have without asking
  912.           you.
  913.  
  914.           However, gray scale type monitors (LCD, gas plasma, etc.) look
  915.           like color monitors to any software.  If you don't tell ProLite
  916.           that you really have a black-and-white display then some of the
  917.           screens will not be very clear.  PCustom enables you to set
  918.           ProLite to look good on a black-and-white monitor.
  919.  
  920.           To set ProLite to look good on your black-and-white monitor,
  921.           simply type "PCUSTOM -B" <Enter>.  When the PCustom Main Menu
  922.           appears choose "Modify All Versions Present".  Wait for a second
  923.           and another Menu will appear.  Choose "Colors".  When the
  924.           "Colors" Submenu appears choose "Gray Scale Attribute Set".  Move
  925.           the highlight bar with the <Down> arrow key and press <Enter>
  926.           when "Gray Scale Attribute Set" is highlighted.  Now go to "Exit
  927.           PCustom" and press <Enter>.  Choose "Save Changes" and you are
  928.           done.
  929.  
  930.           Refer to the section on PCustom (page 66) for more detailed
  931.           information.
  932.  
  933.           You do not have to make any special arrangements to use ProLite
  934.           with a dual monitor system.
  935.  
  936.  
  937.  
  938.           Installing ProLite                                       11 of 94
  939.  
  940.  
  941.                      - Programmer's Productivity Pack Lite 1.01 -
  942.  
  943.  
  944.           The 80 Column Text Mode:
  945.           ========================
  946.  
  947.           In general, the features provided by ProLite are only available
  948.           while in an 80 column text mode.  ProLite will recognize and take
  949.           advantage of 25, 43 and 50 line modes.  ProLite is not designed
  950.           to pop up while in graphics mode.  This is due to the fact that
  951.           much more memory would be needed to save a graphics screen than a
  952.           text screen.  For the same reason, ProLite was not designed for
  953.           use in 132 column mode (which is rarely used).  Also, since most
  954.           of ProLite's displays cannot fit on a 40 column screen, it will
  955.           not pop up under those conditions.
  956.  
  957.  
  958.           The Modifier Keys:
  959.           ==================
  960.  
  961.           Many times in both the manual and the on-screen menus, a
  962.           keystroke command is listed with a caret (^) in front of the key.
  963.           For instance, the Calculator's Quick Reference Menu is opened
  964.           using <^M>.  ProLite is not excessively picky about keystrokes.
  965.           To make things as easy as possible such keys can actually be
  966.           entered in a number of different ways.  Let's use the "^M"
  967.           example.  <^M> can be entered as Ctrl-M, Alt-M, Shift-M, or just
  968.           plain "M".  This makes keystroke commands very easy to remember.
  969.  
  970.           There are only two categories of exceptions to this rule and they
  971.           will always be explained as they are encountered.  The two
  972.           general categories are outlined below.
  973.  
  974.           When you are in Hexadecimal format in The Programmer's
  975.           Calculator, the letters "A" through "F" correspond to the
  976.           hexadecimal values 0A hex (10 decimal) through 0F hex (15
  977.           decimal).  Therefore, to use one of these letters as anything
  978.           other than a hexadecimal value, they must be preceded by either
  979.           <Ctrl> or <Alt>.
  980.  
  981.           Some keys such as <Tab> or <F1> mean the opposite when they are
  982.           modified with <Ctrl>, <Alt> or a <Shift> key.
  983.  
  984.  
  985.           ProLite and Your Keyboard:
  986.           ==========================
  987.  
  988.           Knowing how ProLite uses your keyboard can help you get the most
  989.           out of ProLite.  ProLite is able to use more key combinations
  990.           than most software.  The reason for this is twofold.
  991.  
  992.           When ProLite is installed, it hooks into the BIOS keyboard
  993.           services (Interrupts 09h and 16h) and adds several additional
  994.           capabilities to those services.  These additional features are
  995.  
  996.  
  997.           Installing ProLite                                       12 of 94
  998.  
  999.  
  1000.                      - Programmer's Productivity Pack Lite 1.01 -
  1001.  
  1002.  
  1003.           much more apparent to those of you who do not have enhanced
  1004.           keyboards.  ProLite is able to recognize many key combinations
  1005.           that are normally usable only with an enhanced keyboard.  Also,
  1006.           for users of enhanced keyboards, ProLite is able to use about a
  1007.           dozen key combinations that are not normally recognized by the
  1008.           BIOS alone.  This enhancement to normal keyboard functionality is
  1009.           at a very low level, meaning that you do not have to do anything
  1010.           special to obtain this benefit.
  1011.  
  1012.           On a higher level, ProLite goes to extreme lengths to recognize
  1013.           keys logically according to the context in which they are typed.
  1014.           For instance, if you are using The Programmer's Calculator and do
  1015.           not have NumLock set and you press the <Up> Arrow key, it is
  1016.           fairly obvious that you intended to enter the number 8.  This
  1017.           concept helps to make ProLite so easy to use.  It even works with
  1018.           the number 5 key, the center key on the numeric keypad, when
  1019.           NumLock is NOT on.
  1020.  
  1021.           By being aware of ProLite's efforts to make your keyboard more
  1022.           functional, you can often think of additional ways to improve
  1023.           your productivity.  After all, who knows more about the kinds of
  1024.           things you use your computer for than you do?
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.           Installing ProLite                                       13 of 94
  1057.  
  1058.  
  1059.                      - Programmer's Productivity Pack Lite 1.01 -
  1060.  
  1061.  
  1062.                            --------------------------------
  1063.                             How To Load And Unload ProLite
  1064.                            --------------------------------
  1065.  
  1066.  
  1067.           Now that you have chosen which files you want to use and have
  1068.           installed them on your system, all that remains is to use them.
  1069.  
  1070.  
  1071.           Using ProLite:
  1072.           ==============
  1073.  
  1074.           ProLite is an extremely flexible program containing the most used
  1075.           features of The Programmer's Productivity Pack.
  1076.  
  1077.               o  ProLite can be loaded as a swapping memory resident
  1078.                  version which swaps most of itself out of memory when not
  1079.                  in use.  When loaded in this fashion ProLite retains only
  1080.                  about 7K bytes of memory while resident.  ProLite can swap
  1081.                  itself to:
  1082.  
  1083.                      -  XMS memory.
  1084.  
  1085.                      -  EMS memory.
  1086.  
  1087.                      -  a RAM disk.
  1088.  
  1089.                      -  a hard disk.
  1090.  
  1091.                      -  a Bernoulli drive.
  1092.  
  1093.               o  ProLite can be loaded as a traditional memory resident
  1094.                  program (no swapping).
  1095.  
  1096.               o  ProLite can also be run as a stand-alone DESQview aware
  1097.                  program which does not remain memory resident.
  1098.  
  1099.           ProLite also provides a useful pop-up DOS shell capability.  When
  1100.           activated, this capability swaps the currently running program
  1101.           out, freeing as much memory as possible, then loads a secondary
  1102.           copy of the command processor, and places you at the DOS prompt.
  1103.           This capability enables you to shell to DOS from programs that do
  1104.           not have this capability built in.
  1105.  
  1106.           Important Note:  To use the pop-up DOS shell capability you must
  1107.           have PC/MS-DOS 3.0 or later.  If you are using an earlier version
  1108.           of DOS you will have to disable the DOS shell capability using
  1109.           PCustom, before you can use ProLite.
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.           Loading and Unloading ProLite                            14 of 94
  1116.  
  1117.  
  1118.                      - Programmer's Productivity Pack Lite 1.01 -
  1119.  
  1120.  
  1121.           Loading ProLite:
  1122.           ----------------
  1123.  
  1124.           To start ProLite simply type "PROLITE" <Enter> at the DOS prompt.
  1125.           This will start ProLite in its default (normal) mode.  Several
  1126.           command line options are available and are described in detail
  1127.           below.  Before we discuss the command line options, you should be
  1128.           aware of some limitations.
  1129.  
  1130.           ProLite is designed to provide you with as much usable memory as
  1131.           possible while it is resident.  To accomplish this ProLite must
  1132.           be able to swap itself into and out of memory.  Because of this
  1133.           swapping behavior there are several things you must avoid.
  1134.  
  1135.               o  ProLite cannot be loaded into "high" memory using
  1136.                  utilities such as QRAM, QEMM, 386MAX, or any similar
  1137.                  utility.
  1138.  
  1139.               o  ProLite should not be loaded before programs that contain
  1140.                  hardware interrupt handlers.  Examples of such programs
  1141.                  are network shells, multitasking operating systems, and
  1142.                  communications programs.  If you are going to use ProLite
  1143.                  in these environments you should load it after the network
  1144.                  shell or multitasking operating system is installed.
  1145.  
  1146.               o  It is possible to load ProLite and still run
  1147.                  communications programs like ProComm or TAPCIS, providing
  1148.                  you follow some simple guidelines.  Do NOT pop ProLite up
  1149.                  over your communications program while it is online,
  1150.                  uploading or downloading, or waiting to answer an incoming
  1151.                  call.  When ProLite pops up it swaps the current
  1152.                  application out - essentially trading places with it in
  1153.                  memory.  This will be a problem if the other program was
  1154.                  trying to deal with com ports or some other hardware
  1155.                  related activity.  Of course, if you are using a program
  1156.                  like ProComm or TAPCIS and the program is not online or
  1157.                  waiting to answer an incoming call, then it is safe to pop
  1158.                  up ProLite.
  1159.  
  1160.               o  ProLite will not pop up over a program operating in
  1161.                  graphics mode.  ProLite does not know how to save and
  1162.                  restore a graphics screen.  So to prevent problems,
  1163.                  ProLite will simply beep and refuse to pop up when your
  1164.                  video system is in graphics mode.
  1165.  
  1166.           There are also some important restrictions regarding the pop-up
  1167.           DOS shell capabilities.
  1168.  
  1169.               o  You cannot pop to a DOS shell while you are at the DOS
  1170.                  command line.  The problem has to do with the way DOS
  1171.                  handles its internal stacks.  You're probably wondering
  1172.  
  1173.  
  1174.           Loading and Unloading ProLite                            15 of 94
  1175.  
  1176.  
  1177.                      - Programmer's Productivity Pack Lite 1.01 -
  1178.  
  1179.  
  1180.                  "why would I want to shell to the DOS command line when
  1181.                  I'm already at the DOS command line?".  Well, there's
  1182.                  really no reason to do this, so this isn't much of a
  1183.                  limitation.  Unfortunately, this is one of the first
  1184.                  things users try to do when they start experimenting with
  1185.                  ProLite.
  1186.  
  1187.               o  This same conflict arises if you pop up a TSR from the DOS
  1188.                  command line and then try to pop to a DOS shell using
  1189.                  ProLite.  Even though you popped up another TSR,
  1190.                  technically you are still at the DOS command line.
  1191.  
  1192.               o  The DOS programs DEBUG and EDLIN are very similar to the
  1193.                  DOS command line in terms of how internal DOS stacks are
  1194.                  managed.  Because of this you cannot pop to a DOS shell
  1195.                  from within DEBUG or EDLIN.
  1196.  
  1197.               o  It is possible, under a multitasking system such as
  1198.                  DESQview, for ProLite to not recognize that you are at the
  1199.                  DOS command line.  So be very careful when using ProLite
  1200.                  under a multitasking operating system - don't try to pop
  1201.                  to a DOS shell from the DOS command line.
  1202.  
  1203.               o  Finally, the most important restriction:  Do NOT install
  1204.                  another memory resident program while you are within the
  1205.                  ProLite DOS shell.  When you exit from the DOS shell
  1206.                  ProLite will swap the new memory resident program out and
  1207.                  the results will not be pretty.
  1208.  
  1209.           When ProLite is swapping to disk, it must be absolutely
  1210.           guaranteed that it will have access to its swap files when it
  1211.           swaps itself into or out of memory.  This requirement, coupled
  1212.           with the speed issue, means that ProLite's swap file cannot be
  1213.           located on removable media such as a floppy diskette.  ProLite
  1214.           checks for this and will refuse to load if you specify a floppy
  1215.           drive as the location for the swap files.  Even though the media
  1216.           is technically removable, you may still use a Bernoulli drive as
  1217.           the location for the swap files.
  1218.  
  1219.           ProLite Command Line Options:
  1220.           -----------------------------
  1221.  
  1222.           Some programs are overly picky about how a command line option is
  1223.           entered.  Some programs expect each option to be preceded by a
  1224.           space and a backslash.  Even worse, some programs are case
  1225.           sensitive - a command line option must be lower case, or it must
  1226.           be upper case, or some other limitation.  Command line options
  1227.           with ProLite are very easy.
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.           Loading and Unloading ProLite                            16 of 94
  1234.  
  1235.  
  1236.                      - Programmer's Productivity Pack Lite 1.01 -
  1237.  
  1238.  
  1239.           For instance, if a command line option is "/X" - the "X" may be
  1240.           either upper or lower case.  Furthermore, it may be preceded by a
  1241.           forward slash (/), a backslash (\), a dash (-), or a space ( ).
  1242.  
  1243.           Here is a brief list of each option.  The list is followed by a
  1244.           detailed description of each option.
  1245.  
  1246.              -D  force swapping to Disk only
  1247.  
  1248.              -E  force swapping to EMS memory only
  1249.  
  1250.              -H  Help (same as "-?")
  1251.  
  1252.              -M  Minimize swap size (XMS and Disk only)
  1253.  
  1254.              -N  No swapping (TSR mode - same as "-T")
  1255.  
  1256.              -P  Preserve mouse state within the DOS shell
  1257.  
  1258.              -S  Stand-alone (non-resident), DESQview aware mode
  1259.  
  1260.              -T  TSR mode (no swapping - same as "-N")
  1261.  
  1262.              -U  Unload the previously loaded copy of ProLite from memory
  1263.  
  1264.              -X  force swapping to XMS memory only
  1265.  
  1266.              -?  shows a list of all available command line options and
  1267.                  returns to the DOS command line (help - same as "-H")
  1268.  
  1269.           (D) Force Swapping to Disk Only:
  1270.           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1271.              This option forces ProLite to swap to disk even if sufficient
  1272.              EMS or XMS memory is available.  Swapping to disk is
  1273.              inevitably slower than swapping to EMS or XMS memory.  The
  1274.              speed of the swapping process can be further controlled by the
  1275.              "-M" option described below.
  1276.  
  1277.              This option can be permanently controlled using PCustom.
  1278.  
  1279.           (E) Force Swapping to EMS Memory Only:
  1280.           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1281.              This option forces ProLite to swap to EMS memory.  If there is
  1282.              not enough EMS memory available, then ProLite will abort
  1283.              without attempting to swap to either disk or XMS memory.
  1284.  
  1285.              This option can be permanently controlled using PCustom.
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.           Loading and Unloading ProLite                            17 of 94
  1293.  
  1294.  
  1295.                      - Programmer's Productivity Pack Lite 1.01 -
  1296.  
  1297.  
  1298.           (H) Help:
  1299.           ~~~~~~~~~
  1300.              Displays a list of command line options and returns to DOS
  1301.              without going resident.  This can be accomplished using any
  1302.              command line option that is not recognized by ProLite.  This
  1303.              option is the same as "-?" described below.
  1304.  
  1305.           (M) Minimize Swap Size:
  1306.           ~~~~~~~~~~~~~~~~~~~~~~~
  1307.              This option applies only when ProLite is swapping to disk or
  1308.              to XMS memory (it is ignored when swapping to EMS memory).
  1309.  
  1310.              When swapping to disk, two swap files are used.  When swapping
  1311.              to XMS memory, two blocks of memory are used.  One is used for
  1312.              storing the memory under the control of ProLite, the other is
  1313.              used for storing the memory under the control of the
  1314.              application being swapped out.  This allows the swapping
  1315.              operation to occur as quickly as possible - at the expense of
  1316.              using more disk space, or more XMS memory.
  1317.  
  1318.              When the "-M" option is used, ProLite will use only one file
  1319.              when swapping to disk, or one memory block when swapping to
  1320.              XMS.  In effect, the two swap images "trade places" with each
  1321.              other during the swapping operation.
  1322.  
  1323.              This option causes ProLite to use much less disk space, or
  1324.              much less XMS memory.  The price you pay for conserving these
  1325.              resources is speed.  Swapping takes much longer in this mode.
  1326.  
  1327.              This option can be permanently controlled using PCustom.
  1328.  
  1329.           (N) No Swapping, and
  1330.           (T) TSR Mode:
  1331.           ~~~~~~~~~~~~~
  1332.              These options are identical.  Use the one that is easiest for
  1333.              you to remember.
  1334.  
  1335.              When ProLite is loaded in TSR mode, it will load just like
  1336.              ProLite.  It will remain in memory until it is unloaded - no
  1337.              swapping will be performed.  This means that it will pop-up
  1338.              instantly when a hot key is pressed, but it will take much
  1339.              more memory away from your other programs.  The pop-up DOS
  1340.              shell capability is not available in this mode.
  1341.  
  1342.              This option can be permanently controlled using PCustom.
  1343.  
  1344.           (P) Preserve Mouse State:
  1345.           ~~~~~~~~~~~~~~~~~~~~~~~~~
  1346.              Most people won't pop to DOS from a program that uses a mouse
  1347.              and then run another program that uses a mouse.  So there is
  1348.              usually no need for ProLite to preserve the mouse state when
  1349.  
  1350.  
  1351.           Loading and Unloading ProLite                            18 of 94
  1352.  
  1353.  
  1354.                      - Programmer's Productivity Pack Lite 1.01 -
  1355.  
  1356.  
  1357.              it pops to DOS and restore it when it returns from DOS.  Some
  1358.              newer mouse drivers are annoyingly slow at initializing (which
  1359.              happens every time you pop to DOS), which is yet another
  1360.              reason why ProLite does not normally preserve the state of the
  1361.              mouse.
  1362.  
  1363.              This option tells ProLite to preserve the mouse state before
  1364.              it shells to DOS, and to restore the mouse state when it
  1365.              returns from the DOS shell.  If you use a mouse often, you
  1366.              will want to start ProLite with the "-P" option.
  1367.  
  1368.           (S) Stand-Alone Mode:
  1369.           ~~~~~~~~~~~~~~~~~~~~~
  1370.              This option tells ProLite to run like a traditional program.
  1371.              This means that ProLite will not go memory resident.  When you
  1372.              are finished using ProLite and exit, you will return to DOS.
  1373.              In this mode ProLite is DESQview aware and sends all screen
  1374.              output to the buffer provided by DESQview rather than directly
  1375.              to video memory.
  1376.  
  1377.              This option can be permanently controlled using PCustom.
  1378.  
  1379.           (U) Unload From Memory:
  1380.           ~~~~~~~~~~~~~~~~~~~~~~~
  1381.              Tells ProLite to look for a copy of itself already loaded into
  1382.              memory, and to unload that copy if found.  When this option is
  1383.              used, ProLite will unload the resident copy and then return to
  1384.              DOS.
  1385.  
  1386.              This is the safest way to unload ProLite from memory!
  1387.  
  1388.              If ProLite was not previously loaded then this option is
  1389.              ignored.
  1390.  
  1391.              * When this option is used it should be the *only* option
  1392.                used.
  1393.  
  1394.           (X) Force Swapping to XMS Memory Only:
  1395.           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1396.              This option forces ProLite to swap to XMS memory.  If there is
  1397.              not enough XMS memory available then ProLite will abort
  1398.              without attempting to swap to either disk or EMS memory.
  1399.  
  1400.              NOTE:  XMS swapping is only available with XMS (Extended
  1401.              Memory Specification) extended memory - not with simulated
  1402.              extended memory or extended memory which doesn't conform to
  1403.              the XMS standard.
  1404.  
  1405.              This option can be permanently controlled using PCustom.
  1406.  
  1407.  
  1408.  
  1409.  
  1410.           Loading and Unloading ProLite                            19 of 94
  1411.  
  1412.  
  1413.                      - Programmer's Productivity Pack Lite 1.01 -
  1414.  
  1415.  
  1416.           (?) Help:
  1417.           ~~~~~~~~~
  1418.              Displays a list of command line options and returns to DOS
  1419.              without going resident.  This can be accomplished using any
  1420.              command line option which is not recognized by ProLite.  This
  1421.              option is the same as "-H" described above.
  1422.  
  1423.           ProLite as a Stand-Alone Program:
  1424.           ---------------------------------
  1425.  
  1426.           By now you have a good grasp of how a memory-resident program is
  1427.           loaded into memory.  Now let's examine some of the differences
  1428.           between the memory-resident and the stand-alone or multitasking
  1429.           capabilities of ProLite.  ProLite, when loaded with the "/S"
  1430.           option, is designed to run as a stand-alone program under MS-DOS
  1431.           or as a background task under DESQview or TaskView/OmniView.
  1432.  
  1433.           The memory-resident versions of ProLite write directly to video
  1434.           memory when they output information to the screen.  There are
  1435.           several advantages to this technique.  First and foremost,
  1436.           writing directly to video memory is much faster than sending all
  1437.           screen output through the operating system.  Additionally, direct
  1438.           screen writing allows ProLite to retain more control over the
  1439.           screen.
  1440.  
  1441.           Programmers running ProLite under DESQview or TaskView/OmniView
  1442.           should consider the subject of "windows".  In deciding how to set
  1443.           up ProLite you should be aware that some features use the entire
  1444.           screen.  For instance, The ASCII and Color Attribute Chart will
  1445.           use the entire 25, 43 or 50 lines available on the screen
  1446.           (depending upon the current video mode and hardware
  1447.           capabilities).  Of course, before overwriting anything currently
  1448.           displayed on the screen, ProLite will copy the screen contents to
  1449.           its own internal buffer, and then restore the screen before
  1450.           exiting.  If you specify a window size smaller than the entire
  1451.           screen, sometimes ProLite will write outside the boundaries of
  1452.           that window.  It will always restore it when it is finished, so
  1453.           don't worry.
  1454.  
  1455.           When ProLite is running under a multitasking system (using the
  1456.           "-S" command line switch) it may not be the only program using
  1457.           the screen.  If another program is using the screen, it would be
  1458.           very rude for ProLite to overwrite the other program's output.
  1459.           To avoid this, ProLite sends its screen output to the "virtual
  1460.           screen" provided by the multitasking system, rather than directly
  1461.           to video memory.  This allows the multitasking system to retain
  1462.           control over which application has access to the actual screen at
  1463.           any given time.
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.           Loading and Unloading ProLite                            20 of 94
  1470.  
  1471.  
  1472.                      - Programmer's Productivity Pack Lite 1.01 -
  1473.  
  1474.  
  1475.           What this means to multitasking systems is that ProLite is very
  1476.           considerate of any other programs that might be running
  1477.           simultaneously.
  1478.  
  1479.           Renaming PROLITE.EXE:
  1480.           ---------------------
  1481.  
  1482.           You are free to change the name of PROLITE.EXE to any other name
  1483.           as long as the .EXE extension is not changed.  PCustom does not
  1484.           need to be able to find PROLITE.EXE to customize it.  However,
  1485.           you must not change the name of the configuration file
  1486.           (PROLITE.CFG).
  1487.  
  1488.           If you change the name of the configuration file, then ProLite or
  1489.           PCustom will simply write a new PROLITE.CFG file the next time
  1490.           they run.  The new file will have all the default values and will
  1491.           not retain any customizations you may have made.
  1492.  
  1493.  
  1494.           Unloading ProLite:
  1495.           ==================
  1496.  
  1497.           At the DOS prompt type "ProLite -U" and press <Enter>.  This will
  1498.           unload ProLite from memory (if it is safe to do so).  You may use
  1499.           "-U", "/U", "\U", or " U" to unload ProLite from memory (the "U"
  1500.           may be upper or lower case).  This is the safest way to unload
  1501.           ProLite from memory.
  1502.  
  1503.           Whether you are at the DOS prompt or not you can unload ProLite
  1504.           from memory by popping up The Programmer's Calculator and
  1505.           pressing <Alt><U>, <Alt><U>.  That's right, press it twice.  If
  1506.           you prefer you can press <Ctrl><U>, <Ctrl><U>.  We told you
  1507.           ProLite wasn't picky.
  1508.  
  1509.           If at any time you are unsure if ProLite is loaded in memory
  1510.           simply try to install it again.  It won't allow itself to be
  1511.           installed twice and will give you a message to the effect that it
  1512.           is already resident.  Pressing the Hot Keys will also tell you if
  1513.           it is resident or not.
  1514.  
  1515.  
  1516.           Sidekick Considerations:
  1517.           ========================
  1518.  
  1519.           If you are a Sidekick user, especially if you have been one for
  1520.           some time, you have probably noticed that Sidekick can cause
  1521.           difficulties for other memory-resident programs.  Especially for
  1522.           programs loaded after Sidekick.  If you are a dedicated Sidekick
  1523.           fan, and there are many of them around, then it would be
  1524.           beneficial for you to understand a little about Sidekick's inner
  1525.           workings.
  1526.  
  1527.  
  1528.           Loading and Unloading ProLite                            21 of 94
  1529.  
  1530.  
  1531.                      - Programmer's Productivity Pack Lite 1.01 -
  1532.  
  1533.  
  1534.           Sidekick is an important consideration for anyone designing
  1535.           memory-resident programs.  Sidekick is really an industry wide
  1536.           standard because of its popularity.  How well a memory-resident
  1537.           program gets along with Sidekick often determines how well a
  1538.           memory-resident program gets along with its users.
  1539.  
  1540.           With that in mind here are a few tips that could help you with
  1541.           all the programs you use while Sidekick is resident.
  1542.  
  1543.           As you read in Sidekick's manual, Sidekick should always be the
  1544.           last memory-resident program loaded into memory.  There is a very
  1545.           practical reason for this requirement.  The gist of the problem
  1546.           lies in Sidekick's use of the BIOS keyboard services.  In order
  1547.           to ensure that Sidekick will always be able to see any keystrokes
  1548.           directed to it, it takes steps to ensure that it gets first crack
  1549.           at all keystrokes.  How does Sidekick accomplish this feat?
  1550.           Well, not only does Sidekick grab the keyboard hardware interrupt
  1551.           when first loaded, it also monitors that interrupt constantly.
  1552.           If Sidekick sees another program grab the same interrupt,
  1553.           Sidekick grabs it right back.  While this may seem rude, it is
  1554.           actually a pretty good idea.  The problem is that Sidekick may
  1555.           grab it back more than once!  If the keyboard hardware interrupt
  1556.           is grabbed a second time, by any program at all, Sidekick grabs
  1557.           the vector again, which fouls up the ISR chain (and hangs your
  1558.           system to demonstrate its disapproval).
  1559.  
  1560.           Today this seems to directly contradict our view of how a well
  1561.           behaved program should conduct itself.  But before you pass
  1562.           judgment on Borland you should remember that Sidekick became
  1563.           available "way back when".  When memory-resident utilities were
  1564.           rarely seen and little understood.  At the time Sidekick was
  1565.           written there were very few programs that grabbed the keyboard
  1566.           hardware interrupt.  Primarily because there were very few
  1567.           memory-resident programs around.  Of course, one could argue that
  1568.           Borland should have corrected the problem in a later release.  If
  1569.           you've tried SideKick Plus, the next generation of Sidekick,
  1570.           you've seen that Borland has in fact corrected this problem.
  1571.  
  1572.           With this brief historical background out of the way, we can get
  1573.           down to the business of dealing with Sidekick's stingy attitude
  1574.           towards the keyboard interrupt.  Even though SideKick Plus is now
  1575.           available, there are still hundreds of thousands of people using
  1576.           Sidekick.  It is to these people that this information will be
  1577.           the most useful.
  1578.  
  1579.           Once you understand Sidekick's refusal to share with other
  1580.           programs, you will be able to prevent problems from arising.
  1581.           Simply make sure not to incur Sidekick's wrath by taking the
  1582.           keyboard interrupt away from it.  This holds true for any
  1583.           program, memory-resident or stand-alone.  Sidekick must always be
  1584.           catered to when dealing with the keyboard hardware interrupt.
  1585.  
  1586.  
  1587.           Loading and Unloading ProLite                            22 of 94
  1588.  
  1589.  
  1590.                      - Programmer's Productivity Pack Lite 1.01 -
  1591.  
  1592.  
  1593.           ProLite grabs the keyboard hardware interrupt twice.  Once when
  1594.           it loaded, and a second time when The Keystroke Reference Center
  1595.           is displayed.  That's how ProLite is able to show you the
  1596.           contents of the BIOS keyboard status bytes.
  1597.  
  1598.           It is for these reasons that ProLite was specially designed to
  1599.           work with Sidekick.  ProLite, during the process of loading
  1600.           itself into memory, alters Sidekick internally to prevent it from
  1601.           hogging up the keyboard interrupt.  This is very similar to the
  1602.           technique used by SideKick Plus when it is used in conjunction
  1603.           with Sidekick.  This technique works so well that ProLite can
  1604.           safely be loaded AFTER Sidekick, and Sidekick will not mind the
  1605.           company at all.
  1606.  
  1607.           There is a side effect to this technique (isn't there always?).
  1608.           When ProLite is loaded after Sidekick, Sidekick loses its ability
  1609.           to detect whether or not it has already been loaded into memory.
  1610.           This means that you could load a second copy of Sidekick into
  1611.           memory if you forget that it is already loaded.  Actually that's
  1612.           a very minor inconvenience compared to the alternative (Sidekick
  1613.           throwing up its hands and hanging your system).
  1614.  
  1615.  
  1616.           The DOS PRINT Program:
  1617.           ======================
  1618.  
  1619.           The DOS PRINT program was not designed to be unloaded from memory
  1620.           except by rebooting your system.  The reason we mention this here
  1621.           is because ProLite will not be able to unload itself if PRINT is
  1622.           loaded after it.  The obvious solution is to load PRINT before
  1623.           you load ProLite.  This will help to retain ProLite's ability to
  1624.           unload itself from memory.  Of course you still have the problem
  1625.           of unloading PRINT from memory when you no longer need it.  We
  1626.           also have a solution for that problem.  Registered users of
  1627.           ProLite receive a Bonus Disk containing tools to help you deal
  1628.           with programs like PRINT which were not designed to be unloaded.
  1629.  
  1630.  
  1631.           In Case of Conflicts With Other Memory-Resident Programs:
  1632.           =========================================================
  1633.  
  1634.           ProLite was carefully designed to ensure that it is well behaved
  1635.           and can get along with other memory-resident programs.  Of course
  1636.           today there are so many memory-resident utilities available that
  1637.           it simply wasn't possible to test ProLite with all of them.
  1638.  
  1639.           As a general rule, whenever you encounter a memory-resident
  1640.           program that doesn't get along well with ProLite, simply load
  1641.           ProLite before loading the other program.  In virtually every
  1642.           instance, this should solve any problems you may encounter with
  1643.           other memory-resident programs.
  1644.  
  1645.  
  1646.           Loading and Unloading ProLite                            23 of 94
  1647.  
  1648.  
  1649.                      - Programmer's Productivity Pack Lite 1.01 -
  1650.  
  1651.  
  1652.           One example is PopCalc from BellSoft, Inc.  PopCalc is extremely
  1653.           rude in the way it deals with other memory resident programs.  As
  1654.           pointed out here, the way to avoid conflicts is to load ProLite
  1655.           before loading PopCalc.
  1656.  
  1657.  
  1658.           ProLite and Batch Files:
  1659.           ========================
  1660.  
  1661.           Many people like to include ProLite in their AUTOEXEC.BAT(ch)
  1662.           file so that it will be loaded automatically each time the
  1663.           machine is turned on.  There is a number of details that should
  1664.           be taken into consideration before positioning ProLite in your
  1665.           AUTOEXEC.BAT file.
  1666.  
  1667.           First, if you want to be able to unload ProLite from memory, you
  1668.           should endeavor to load ProLite last among your memory-resident
  1669.           programs.  Of course if your other memory-resident programs can
  1670.           also be removed from memory then you may load them in any order.
  1671.           Just be sure to unload them in the reverse order from which they
  1672.           were installed.  This will avoid having "holes" in memory between
  1673.           programs.
  1674.  
  1675.           One other consideration when using batch files is the DOS
  1676.           ERRORLEVEL value returned by other programs.
  1677.  
  1678.           The programs that come with the Programmer's Productivity Pack
  1679.           Lite provide clear and detailed error messages if an error should
  1680.           occur.  But they also return values in the DOS ERRORLEVEL for any
  1681.           errors that result in program termination.  After ProLite or
  1682.           PCustom terminate, the value in DOS ERRORLEVEL will be 0 for
  1683.           normal termination, or 1 if any errors occurred.
  1684.  
  1685.  
  1686.           ProLite Error Messages:
  1687.           =======================
  1688.  
  1689.           Unlike many programs that display a meaningless code for each
  1690.           error, the ProLite programs all display simple, clear messages
  1691.           when an error occurs.  In almost every case you will understand
  1692.           any error messages you encounter without needing any additional
  1693.           information.
  1694.  
  1695.           There are a few error situations in which the problem may not be
  1696.           so obvious.  Two errors that fall into this category are a
  1697.           missing swap file, and incorrect video modes.  The following
  1698.           information describes each of these two situations in detail.
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.           Loading and Unloading ProLite                            24 of 94
  1706.  
  1707.  
  1708.                      - Programmer's Productivity Pack Lite 1.01 -
  1709.  
  1710.  
  1711.           Beeps and Doesn't Pop Up:
  1712.           -------------------------
  1713.  
  1714.              If you press a Hot Key and ProLite beeps instead of popping up
  1715.              there can be two possible causes.
  1716.  
  1717.              Not in 80 Column Text Mode.  Another situation which would
  1718.              cause ProLite to beep rather than popping up, is pressing a
  1719.              Hot Key while the system is in graphics mode, or in 40 or 132
  1720.              column text mode.  The solution is to switch back to an 80
  1721.              column text mode before popping up ProLite.
  1722.  
  1723.              ProLite will beep but refuse to pop up if the swap file(s)
  1724.              (marked with the hidden attribute) are deleted, renamed, or
  1725.              moved.
  1726.  
  1727.              There are also two situations in which ProLite will not pop
  1728.              up, but no beep sound will be generated to indicate a problem.
  1729.              This is because these situations are not errors, rather they
  1730.              are safety measures to prevent errors from arising.  These
  1731.              situations are explained below.
  1732.  
  1733.           Doesn't Beep or Pop Up:
  1734.           -----------------------
  1735.  
  1736.              Unsafe to Pop Up.  There is one situation where no error
  1737.              message will appear to explain the current situation.  This
  1738.              occurs when you attempt to pop up ProLite at a time when it is
  1739.              not safe for ProLite to pop up.  This is a safety measure
  1740.              designed to prevent problems from arising.  When you press a
  1741.              Hot Key, ProLite does a number of things before actually
  1742.              popping up on your screen.  First and most importantly,
  1743.              ProLite checks the current state of your system to see if it
  1744.              is safe to pop up.  If ProLite determines that it may not be
  1745.              safe to pop up at that particular time, then it will instead
  1746.              monitor the system very closely for the next two seconds in
  1747.              case things become safe during that time.  If ProLite
  1748.              determines that the system is in a state that enables ProLite
  1749.              to pop up safely, then ProLite will pop up.  However, if the
  1750.              two seconds pass without any significant change in the state
  1751.              of things, ProLite will simply not pop up.  You will rarely,
  1752.              if ever, encounter this situation.  But if you do, then you'll
  1753.              know that ProLite is not asleep at the switch, but rather it
  1754.              is taking steps to ensure that you encounter no unexpected
  1755.              surprises.
  1756.  
  1757.              When is it unsafe for ProLite to pop up?  For instance,
  1758.              ProLite uses DOS services for several things.  If another
  1759.              program is using that same DOS service then ProLite should
  1760.              wait until the service is completed before interrupting the
  1761.  
  1762.  
  1763.  
  1764.           Loading and Unloading ProLite                            25 of 94
  1765.  
  1766.  
  1767.                      - Programmer's Productivity Pack Lite 1.01 -
  1768.  
  1769.  
  1770.              other program.  In other words, ProLite avoids interrupting
  1771.              any services that ProLite will need to use.
  1772.  
  1773.           There is also a special case regarding the pop-up DOS shell
  1774.           capability of ProLite.  You cannot pop-up the DOS shell if you
  1775.           are already at the DOS command line (this includes popping up
  1776.           another TSR over the DOS command line, then attempting to pop up
  1777.           a DOS shell).
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.           Loading and Unloading ProLite                            26 of 94
  1824.  
  1825.  
  1826.                      - Programmer's Productivity Pack Lite 1.01 -
  1827.  
  1828.  
  1829.                     ---------------------------------------------
  1830.                      The Programmer's Calculator and Attachments
  1831.                     ---------------------------------------------
  1832.  
  1833.  
  1834.           The Programmer's Calculator and its attachments, The ASCII and
  1835.           Color Attribute Chart and The Keystroke Reference Center, are an
  1836.           integrated set of tools that are powerful, flexible, and fun to
  1837.           use.
  1838.  
  1839.           Not even a hand-held programmer's calculator could provide all of
  1840.           the features that are built into The Programmer's Calculator.
  1841.           The Programmer's Calculator has enough features to satisfy the
  1842.           professional programmer and yet remains simple enough to be
  1843.           useful to the newcomer or student.  The Quick Start Tutorial for
  1844.           The Programmer's Calculator begins below.  The In-Depth Reference
  1845.           Guide begins on page 34.
  1846.  
  1847.           The ASCII and Color Attribute Chart provides a wealth of
  1848.           information on the different ASCII characters, color attributes,
  1849.           monochrome attributes, and extended characters.  Now you can
  1850.           press a key instead of leaving your work to find a reference
  1851.           book.  The Quick Start Tutorial for The ASCII and Color
  1852.           Attributes Chart begins on page 47.  The In-Depth Reference Guide
  1853.           begins on page 49.
  1854.  
  1855.           After you try The Keystroke Reference Center you may ask yourself
  1856.           how you ever got along without it.  A programmer's dream!  BIOS
  1857.           scan codes and dBASE INKEY() values on screen at the touch of a
  1858.           key.  The Quick Start Tutorial for The Keystroke Reference Center
  1859.           begins on page 52.  The In-Depth Reference Guide begins on page
  1860.           55.
  1861.  
  1862.           The Screen Blanking and Disk Parking utility is available from
  1863.           any one of the attachments to The Programmer's Calculator.  The
  1864.           separate In-Depth Reference Guide on page 60 gives you all the
  1865.           information you need concerning the Screen Blanking and Disk
  1866.           Parking capability.
  1867.  
  1868.  
  1869.           The Quick Start Tutorial:
  1870.           =========================
  1871.  
  1872.           This Quick Start Tutorial is designed to familiarize you with the
  1873.           functions and capabilities of The Programmer's Calculator.
  1874.  
  1875.           Be sure that ProLite is resident in memory.  Type "ProLite"
  1876.           <Enter> at the DOS prompt.  Once you are sure that ProLite is
  1877.           resident in memory you may activate, or pop up, the Calculator,
  1878.           by holding down the <Alt> key and pressing <LeftShift>.  This
  1879.           will bring up The Programmer's Calculator display.
  1880.  
  1881.  
  1882.           The Programmer's Calculator                              27 of 94
  1883.  
  1884.  
  1885.                      - Programmer's Productivity Pack Lite 1.01 -
  1886.  
  1887.  
  1888.           As you can see, you have six outlined boxes making up The
  1889.           Programmer's Calculator display.  The boxes are: The Decimal Box;
  1890.           The Hexadecimal Box; The Binary Box; The Octal Box; The Program
  1891.           Information, Date and Time Box; and The Saved Values Box.
  1892.  
  1893.           If you look at the box titles you will see that the Decimal Box
  1894.           is highlighted on your screen.  This means that you are currently
  1895.           in Decimal format.  In other words, numbers are entered as
  1896.           Decimal numbers.  You will still be able to see the same values
  1897.           appear in each of the other numeric formats simultaneously.  The
  1898.           Signed heading is also highlighted.  This means you can enter
  1899.           numbers as positive or negative values.
  1900.  
  1901.           To enter numbers into The Programmer's Calculator, you can use
  1902.           the top row of number keys, or the numeric keypad.  ProLite does
  1903.           not care whether NumLock is set or not.  It is smart enough to
  1904.           know that if you press the <PgUp> key, you want it to enter the
  1905.           value "9", because that is the key that shares <PgUp>.
  1906.  
  1907.           The Programmer's Calculator will accept any digit from 0-9 in
  1908.           Decimal format.  In Hexadecimal format, the Calculator will
  1909.           accept any value from 0-9 and A-F.  In Binary Format the
  1910.           acceptable digits are 0 and 1.  In Octal Format the acceptable
  1911.           digits are 0-7.
  1912.  
  1913.           Common operations like addition, subtraction, multiplication, or
  1914.           division, are performed by pressing their corresponding key.
  1915.           Press <+> for addition, <-> for subtraction, <*> for
  1916.           multiplication, and either </> or <\> for division.
  1917.  
  1918.           Since we don't always enter our numbers correctly it is helpful
  1919.           to know how to clear values, delete digits, and even start from
  1920.           scratch all over again.  Use the <BackSpace> or <Delete> keys to
  1921.           delete a single digit at a time, or use <^E> to clear the current
  1922.           Entry.  Use <^A> to Clear All (to reset the whole Calculator).
  1923.           Remember, <^E> means Ctrl-E, Alt-E, or just plain "E", as
  1924.           explained on page 12.
  1925.  
  1926.           Let's start with a simple problem.  Type the following, watching
  1927.           the screen to see what happens:
  1928.  
  1929.              <5> <+> <5> <=>
  1930.  
  1931.           There you have it!  A Calculator can't get much easier to operate
  1932.           than that!
  1933.  
  1934.           A whole series of calculations can be performed before ever
  1935.           requesting a final result.  For instance, type the following:
  1936.  
  1937.              <5> <+> <7> <+> <2> <-> <1> <=>
  1938.  
  1939.  
  1940.  
  1941.           The Programmer's Calculator                              28 of 94
  1942.  
  1943.  
  1944.                      - Programmer's Productivity Pack Lite 1.01 -
  1945.  
  1946.  
  1947.           As you entered the numbers you noticed that the values
  1948.           accumulated in the top value until you requested a final result
  1949.           by pressing <=>.  Then the answer appeared on the bottom line.  A
  1950.           final result can also be obtained by pressing <Enter> instead of
  1951.           <=>.  Type the following:
  1952.  
  1953.              <100> <-> <50> <-> <25> <+> <10> <Enter>
  1954.  
  1955.           Now let's try multiplication.  Type the following:
  1956.  
  1957.              <16> <*> <4> <*> <4> <=>
  1958.  
  1959.           Division works the same.  Type the following:
  1960.  
  1961.              <64> </> <2> <\> <2> <=>
  1962.  
  1963.           Since this is integer division you will not get any fractional
  1964.           answers.  As an example of this, type the following:
  1965.  
  1966.              <49> </> <10> <=>
  1967.  
  1968.           Ten will only go into 49 four times.  There is no floating
  1969.           decimal point or remainder given.  To get the remainder you would
  1970.           need to use the operation known as "Modulus" which is explained
  1971.           in the In-Depth Reference Guide (page 42).
  1972.  
  1973.           If you have been watching the screen closely you have noticed
  1974.           that even though you have only entered values in Decimal format
  1975.           the operations have been carried out simultaneously in each of
  1976.           the other numeric formats.
  1977.  
  1978.           Even after you have finished this tutorial you probably won't
  1979.           remember all of the features available within The Programmer's
  1980.           Calculator.  To help you remember, there is a built-in Quick
  1981.           Reference Menu.  To activate the Menu simply press <M>.
  1982.  
  1983.           If you have done any assembly language programming, then you are
  1984.           probably familiar with all of the abbreviations used in the Menu;
  1985.           such as SHL for Shift Left and ROR for Rotate Right, etc.
  1986.           However, if you are not familiar with these abbreviations, don't
  1987.           worry.  Every single Menu option is explained in the In-Depth
  1988.           Reference Guide (page 34).  Besides, you're going to get familiar
  1989.           with a few of them in just a minute.
  1990.  
  1991.           You don't have to bring up the Menu in order to execute a
  1992.           command.  The Menu exists solely as a quick reference tool to
  1993.           help you remember which keys perform which operations.  Once you
  1994.           have used the Calculator a few times you will find that many
  1995.           times you won't need the Menu at all.
  1996.  
  1997.  
  1998.  
  1999.  
  2000.           The Programmer's Calculator                              29 of 94
  2001.  
  2002.  
  2003.                      - Programmer's Productivity Pack Lite 1.01 -
  2004.  
  2005.  
  2006.           When you press a key that corresponds to an operation the Menu
  2007.           will disappear and the action will be executed.  Pressing <Esc>
  2008.           makes the Menu disappear without executing any other action.  Try
  2009.           pressing <Esc>.
  2010.  
  2011.           Let's try one of these functions.  Enter the value "57" into the
  2012.           Calculator and press <M> to bring up the Menu.  Shift Left is
  2013.           executed by pressing <F3>.  We are going to shift the value left
  2014.           4 times.  Press <F3> once.  Each time you press <F3>, the value
  2015.           will be shifted left 1 bit position.  You can see this clearly by
  2016.           watching the Binary Box as you press <F3> three more times.
  2017.  
  2018.           Now we are going to shift it back to the right 4 times.  Type <M>
  2019.           to bring up the Menu.  Shift Right (SHR) is <^F3>.  Remember, "^"
  2020.           means <Ctrl>, <Shift>, or <Alt>.  Press <^F3> to shift the value
  2021.           to the right.  If you do this 4 times you will have the original
  2022.           value back.
  2023.  
  2024.           The Shift Arithmetic Left <F7> and Right <^F7> and the Rotate
  2025.           Left <F5> and Right <^F5> operations function the same way.  Each
  2026.           time you press the corresponding key, the value is shifted or
  2027.           rotated one bit position.  Try it a few times.  If these
  2028.           functions are new to you, perhaps you would like to take the time
  2029.           now to read Appendices A (page 79) and B (page 88) at the back of
  2030.           The User's Guide.  They should help clarify these operations for
  2031.           you.
  2032.  
  2033.           Rotate through the Carry Left <F6> and Right <^F6> operate a
  2034.           little differently.  The reason for this is that in order to
  2035.           properly retain the value of the carry flag during the rotate
  2036.           operation, we must do the entire operation in a single step.
  2037.           Let's try it.
  2038.  
  2039.           Enter any value you wish and press <F6>.  You will see a small
  2040.           window open asking you how many bit positions to rotate the
  2041.           value.  For this example, press <8> <Enter>, and watch the
  2042.           Calculator carry out your command.  To rotate back to the right
  2043.           press <^F6>.    Press <8> and <Enter> again and you have your
  2044.           original value back.
  2045.  
  2046.           Ok.  Let's move on to something new.  Press the <TAB> key a few
  2047.           times and watch the screen as you do.  As you can see, the <TAB>
  2048.           key moves you from one numeric format to the next in a clockwise
  2049.           direction.  If you were to press <Ctrl><Tab>, <Alt><Tab>, or
  2050.           <Shift><Tab> instead, you would move counterclockwise from one
  2051.           format to the next.
  2052.  
  2053.           Now, using the <TAB> key, return to Decimal format again.  A
  2054.           shortcut to switching numeric formats is to press the first
  2055.           letter of the format you wish to be in.  For instance, press <O>
  2056.           and you will be in Octal format, press <B> and you will be in
  2057.  
  2058.  
  2059.           The Programmer's Calculator                              30 of 94
  2060.  
  2061.  
  2062.                      - Programmer's Productivity Pack Lite 1.01 -
  2063.  
  2064.  
  2065.           Binary format.  Now press <H> for Hexadecimal format.  When you
  2066.           are in Hexadecimal format, the letters A through F correspond to
  2067.           the hexadecimal values A through F.  Obviously, pressing <B> will
  2068.           not move you into Binary format, but will rather enter the value
  2069.           0B Hex (11 decimal).  So will <Shift><B> (upper case).  Try it.
  2070.           However, if you press <Ctrl><B> or <Alt><B> you will move to
  2071.           Binary format.  Just remember that in Hexadecimal format the
  2072.           letters A through F are numeric values.
  2073.  
  2074.           Get into Binary format now, using whichever method you prefer.
  2075.           <^C>, as you may have noticed on the Menu, operates the feature
  2076.           "Change Bits", ProLite's bit manipulation facility.  <C> or
  2077.           <Alt><C> brings up the Change Bits option as well (as explained
  2078.           on page 12).  The line above the 32 bit value in the Binary Box
  2079.           is highlighted.  There is a small arrow pointing to one of the
  2080.           bits.  You can move back and forth using the <Left> and <Right>
  2081.           arrow keys.  Try it.  The <Home> key takes you directly to the
  2082.           leftmost bit and the <End> key takes you directly to the
  2083.           rightmost bit.  When you are positioned over a bit that you want
  2084.           to change simply press the <Space> bar to toggle the bit.  See
  2085.           how it affects the values in the other numeric formats.  After
  2086.           you have changed the particular bit or bits that you wanted to
  2087.           change, press <Enter> to keep the changes, or press <Esc> to
  2088.           cancel the changes.  Pressing <Esc> will always get you out of
  2089.           the bit manipulation facility.
  2090.  
  2091.           Now, move back to Decimal format.  Once you are in the Decimal
  2092.           Box, press <C> again.  As you can see, this option is available
  2093.           from each of the four numeric formats.  When you are finished
  2094.           manipulating bits and press <Enter> or <Esc> you will be returned
  2095.           to the format you were in before.
  2096.  
  2097.           As you might have guessed, when you are in Hexadecimal format <C>
  2098.           is a value.  Therefore, you need to press <Ctrl><C> or <Alt><C>
  2099.           to activate the bit manipulation facility.
  2100.  
  2101.           To toggle the current value from positive to negative, or from
  2102.           negative to positive, simply press <^-> (<Ctrl><Minus>).  Enter a
  2103.           value.  Press <Ctrl><Minus>.  Press it again.  Press it again.
  2104.           In the Decimal format nothing changes, except the sign.  Watch
  2105.           what it's doing in the other numeric formats.
  2106.  
  2107.           The Signed mode allows positive and negative values.  The
  2108.           Unsigned mode does not.  Enter the positive value 256 in Decimal.
  2109.           To switch to Unsigned mode press <^T>.  That Toggles the sign
  2110.           mode.  Obviously you can't toggle the sign of the current value
  2111.           in Unsigned mode.  Try it.  Press <Ctrl><Minus>.
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.           The Programmer's Calculator                              31 of 94
  2119.  
  2120.  
  2121.                      - Programmer's Productivity Pack Lite 1.01 -
  2122.  
  2123.  
  2124.           Wow!  4,294,967,040 sure doesn't look like 256 or -256!  We won't
  2125.           go into this now, but, if you read the section on "Range Of
  2126.           Values" (page 34) and "Signed And Unsigned Modes" (page 36) they
  2127.           will help to explain this phenomenon.
  2128.  
  2129.           How about saving, or storing, values for use later, and then
  2130.           inserting them back into your calculations?  Well, as the Menu
  2131.           shows, the <F9> key is used to save values, and <Ctrl><F9>,
  2132.           <Alt><F9>, or <Shift><F9> are used to insert the values back into
  2133.           a later calculation.
  2134.  
  2135.           You can use <^S> to Save a value if you don't like using a
  2136.           function key.  You can use <^I> to Insert a value instead of
  2137.           <^F9> if you prefer.
  2138.  
  2139.           Here's how it works.  First clear the Calculator with <^A>.
  2140.           Enter a value.  Press <F9>.  Since you have only one value
  2141.           present, ProLite knows which one you want to save and saves it
  2142.           automatically.  Now enter <+> and another value.  Press <F9>
  2143.           again.  Since you have more than one value present a window will
  2144.           open with a simple pick list asking you which one you want to
  2145.           save.  Like other moving bar Menus, simply use the arrow keys to
  2146.           highlight the value you wish to save and press <Enter> to save
  2147.           it.  Pressing <Esc> will cancel the save operation.
  2148.  
  2149.           Likewise, if all four memory slots are full, a pick list will
  2150.           appear asking you which one to overwrite.
  2151.  
  2152.           Now you are ready to Insert a saved value into the current
  2153.           calculation.  Press <^F9> or <^I>.  If only one memory slot has a
  2154.           value saved in it, that value is automatically inserted.  Since
  2155.           there is more than one saved value, a pick list will appear
  2156.           asking you which value to insert.  Pick one and press <Enter>.
  2157.           That's about as easy to use as you can get!
  2158.  
  2159.           What if you need to leave the computer for a few minutes to do
  2160.           something else?  Well, you will probably want to blank your
  2161.           screen to prevent it from getting screen burns as a result of
  2162.           having the same pixels lit for a long time.  You should also park
  2163.           your hard disk (or disks) in case something happens while you are
  2164.           gone.  All these things are available at the touch of a key!
  2165.  
  2166.           Press <^P> for Park and Blank.  Your screen will blank and a dim
  2167.           clock will appear (so you'll know that your computer is still
  2168.           on), and your hard disk (or disks) will also be parked on the
  2169.           last cylinder.
  2170.  
  2171.           By the way, this dim clock will never burn your screen because
  2172.           every 60 seconds it will move to another position.  This means
  2173.           that for every minute that a pixel is lit, it will be blank for
  2174.           over 3 hours!
  2175.  
  2176.  
  2177.           The Programmer's Calculator                              32 of 94
  2178.  
  2179.  
  2180.                      - Programmer's Productivity Pack Lite 1.01 -
  2181.  
  2182.  
  2183.           To return to what you were doing when you come back to your
  2184.           computer simply press any key.
  2185.  
  2186.           What if you want to change the Hot Key that pops up the
  2187.           Calculator?  As you can see on the Menu, pressing <^Z> will
  2188.           enable you to change the Hot Key "on the fly".  We won't do it
  2189.           now, but this is how it's done.  Refer to the In-Depth Reference
  2190.           Guide (page 38) for complete information.
  2191.  
  2192.           What if you pop up the Calculator and it covers up something on
  2193.           the screen that you need to refer to?  Well, just move the
  2194.           Calculator out of the way.
  2195.  
  2196.           To move the Calculator up or down simply hold down the <Alt> key
  2197.           and press the <Up> or <Down> arrows.  Each time you press
  2198.           <Alt><Up> or <Alt><Down> the Calculator will move one line up or
  2199.           down.  You can move quickly to the top or bottom of the screen
  2200.           using <Alt><PgUp> or <Alt><PgDn>.  When moving the display you
  2201.           must use <Alt> and a direction key.  <Shift> and <Ctrl> will not
  2202.           work here.  Don't feel constrained, though.  You can use <Home>
  2203.           instead of <PgUp> and <End> instead of <PgDn>.
  2204.  
  2205.           You can unload ProLite from memory right from within the
  2206.           Calculator.  Press <Alt><U>, <Alt><U> (be sure to press <Alt><U>
  2207.           twice).  Of course, <Ctrl><U>, <Ctrl><U> will also work.  A
  2208.           Message Window will open informing you whether it is safe or
  2209.           unsafe to unload.  Regardless of whether it's safe or not,
  2210.           pressing <Esc> will return you to the Calculator.  If it is, in
  2211.           fact, safe to unload, pressing any key other than <Esc> will
  2212.           unload ProLite from memory.
  2213.  
  2214.           Well, that completes the Quick Start Tutorial for The
  2215.           Programmer's Calculator.  After tinkering with it for a while,
  2216.           you will find that it is extremely powerful, flexible, and very
  2217.           easy to learn and use.
  2218.  
  2219.           You've covered a lot of ground already!  You know how to perform
  2220.           mathematical calculations and just about every low level bit
  2221.           manipulation you can think of in four numeric formats, as well as
  2222.           how to change the Hot Key, move the display, save and insert
  2223.           values, toggle the sign, blank your screen and park your hard
  2224.           disk(s).  Congratulations!  We told you the Calculator would be
  2225.           easy to use!
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.           The Programmer's Calculator                              33 of 94
  2237.  
  2238.  
  2239.                      - Programmer's Productivity Pack Lite 1.01 -
  2240.  
  2241.  
  2242.                     ---------------------------------------------
  2243.                      The Programmer's Calculator and Attachments
  2244.                     ---------------------------------------------
  2245.  
  2246.  
  2247.           The In-Depth Reference Guide:
  2248.           =============================
  2249.  
  2250.           The Programmer's Calculator that is built into ProLite is a very
  2251.           flexible and powerful Programmer's Calculator.  As a matter of
  2252.           fact, there are currently no Programmer's Calculators available
  2253.           (even hand-held types) that provide all the features available in
  2254.           the ProLite Programmer's Calculator.
  2255.  
  2256.           The following pages provide detailed information on the commands
  2257.           and operations available in this Programmer's Calculator, as well
  2258.           as helpful information concerning its use.
  2259.  
  2260.           The Range Of Values Available:
  2261.           ------------------------------
  2262.  
  2263.           The Programmer's Calculator provides full 32 bit (double word)
  2264.           values in four numeric formats and in both Signed and Unsigned
  2265.           modes.  The ranges of these values are as follows.
  2266.  
  2267.           In Signed mode:
  2268.  
  2269.              Decimal format:
  2270.  
  2271.                 -2,147,483,648 to +2,147,483,647
  2272.  
  2273.              Hexadecimal format:
  2274.  
  2275.                 8000 0000 to 7FFF FFFF
  2276.  
  2277.              Binary format:
  2278.  
  2279.                 10000000 00000000 00000000 00000000
  2280.                                           to
  2281.                 01111111 11111111 11111111 11111111
  2282.  
  2283.              Octal format:
  2284.  
  2285.                 20000000000 to 17777777777
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.           The Programmer's Calculator                              34 of 94
  2296.  
  2297.  
  2298.                      - Programmer's Productivity Pack Lite 1.01 -
  2299.  
  2300.  
  2301.           In Unsigned mode:
  2302.  
  2303.              Decimal format:
  2304.  
  2305.                 0 to 4,294,967,295
  2306.  
  2307.              Hexadecimal format:
  2308.  
  2309.                 0000 0000 to FFFF FFFF.
  2310.  
  2311.              Binary format:
  2312.  
  2313.                 00000000 00000000 00000000 00000000
  2314.                                           to
  2315.                 11111111 11111111 11111111 11111111.
  2316.  
  2317.              Octal format:
  2318.  
  2319.                 000000000000 to 37777777777.
  2320.  
  2321.           The Programmer's Calculator Display:
  2322.           ------------------------------------
  2323.  
  2324.           Once ProLite is loaded into memory, The Programmer's Calculator
  2325.           is accessed by pressing its Hot Key.  The default Hot Key is
  2326.           <LeftShift><Ctrl>.  You can change the default Hot Key using
  2327.           PCustom.  Pressing the Hot Key will bring up The Programmer's
  2328.           Calculator display.
  2329.  
  2330.           The Programmer's Calculator display is designed to show you all
  2331.           the values in the four numeric formats simultaneously.  This
  2332.           feature is especially helpful to those who are just learning
  2333.           about other numeric bases.  It also helps you to get a feel for
  2334.           the relationship between the different numeric bases commonly
  2335.           used in the computer industry.
  2336.  
  2337.                (Due to space limitations and printer incompatibilities,
  2338.                 this figure appears only in the complete Programmer's
  2339.                       Productivity Pack printed User's Guide.)
  2340.  
  2341.                       Figure 1: Programmer's Calculator Display
  2342.  
  2343.           In addition, the display tells you which numeric format you are
  2344.           currently in, whether you are in Signed or Unsigned mode, whether
  2345.           there is any mathematical operation pending, what values (if any)
  2346.           are saved, the version of ProLite that you are using, the date,
  2347.           and the time.
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.           The Programmer's Calculator                              35 of 94
  2355.  
  2356.  
  2357.                      - Programmer's Productivity Pack Lite 1.01 -
  2358.  
  2359.  
  2360.           The display is also designed to enable you to see whatever was on
  2361.           the screen before the Calculator was popped up.  This is
  2362.           accomplished by moving the Calculator display to uncover what is
  2363.           underneath it, whenever the need arises.
  2364.  
  2365.           The Quick Reference Menu:
  2366.           -------------------------
  2367.  
  2368.           A Quick Reference Menu is available to refer to while learning to
  2369.           use the Calculator, or to access operations that may not be used
  2370.           often enough to memorize.
  2371.  
  2372.                (Due to space limitations and printer incompatibilities,
  2373.                 this figure appears only in the complete Programmer's
  2374.                       Productivity Pack printed User's Guide.)
  2375.  
  2376.                          Figure 2: The Quick Reference Menu
  2377.  
  2378.           To open the Menu press <^M>.  Of course, as explained on page 12,
  2379.           you can use <M>, <Ctrl><M>, <Alt><M> or <Shift><M>.
  2380.  
  2381.           The Menu lists all of the functions available in The Programmer's
  2382.           Calculator.  There are, however, more keystrokes than those
  2383.           listed here to operate each of the functions.
  2384.  
  2385.           Signed And Unsigned Modes:
  2386.           --------------------------
  2387.  
  2388.           The Programmer's Calculator gives you the ability to choose
  2389.           whether the values will be treated as Signed or Unsigned.  Signed
  2390.           values may be negative or positive.  Unsigned values may only be
  2391.           positive.  This allows the Calculator to much more closely mimic
  2392.           the actual operations available at the assembly language level.
  2393.  
  2394.           Refer to "The Range of Values Available" (page 34) to see what
  2395.           the numeric limitations are in each of the modes and formats.
  2396.  
  2397.           To toggle (switch back and forth) between Signed and Unsigned
  2398.           modes use <^T>.
  2399.  
  2400.           If you switch into Unsigned mode while you have a negative number
  2401.           in the display the Calculator will treat it according to its
  2402.           value in Binary format.  You will go from a small, negative value
  2403.           to a huge, positive value instantly.  If this is unclear to you,
  2404.           refer to Appendix B, "Two's Complement Numbers" (page 88).
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.           The Programmer's Calculator                              36 of 94
  2414.  
  2415.  
  2416.                      - Programmer's Productivity Pack Lite 1.01 -
  2417.  
  2418.  
  2419.           The Four Numeric Formats:
  2420.           -------------------------
  2421.  
  2422.           The Programmer's Calculator provides you with four numeric
  2423.           formats through which values may be entered.  Values can only be
  2424.           entered in the format which is current (the format which is
  2425.           highlighted on the display).  However, any values which are
  2426.           entered will always be displayed in all four formats
  2427.           simultaneously.  Values may be entered as either decimal,
  2428.           hexadecimal, binary, or octal, depending upon which format is
  2429.           current.
  2430.  
  2431.           The Programmer's Calculator will only accept values that are
  2432.           relevant to the current format.  In Decimal it will accept 0-9.
  2433.           In Hexadecimal it will accept 0-9 and A-F.  In Binary it will
  2434.           accept 0 or 1.  In Octal it will accept 0-7.  Attempting to enter
  2435.           a value which is not a part of the digit set for a particular
  2436.           format will cause The Programmer's Calculator to beep and ignore
  2437.           the keystroke.
  2438.  
  2439.           Switching formats is easy.  There are several ways you can do it.
  2440.  
  2441.           <Tab>    The <Tab> key switches to the next numeric format
  2442.                    clockwise in the display.  It will go from Decimal to
  2443.                    Hexadecimal to Binary to Octal and back to Decimal.
  2444.  
  2445.           <^Tab>   Pressing <Shift><Tab>, <Alt><Tab> or <Ctrl><Tab> moves
  2446.                    backwards, or counterclockwise, through the display.
  2447.  
  2448.           You may also switch formats using the first letter of the numeric
  2449.           format.
  2450.  
  2451.           <^D>  switches to Decimal format.
  2452.  
  2453.           <^H>  switches to Hexadecimal format.
  2454.  
  2455.           <^B>  switches to Binary format.
  2456.  
  2457.           <^O>  switches to Octal format.
  2458.  
  2459.           When you are in Hexadecimal format, the <B> and <D> keys
  2460.           represent the hexadecimal values 0B Hex (11) and 0D Hex (13), so
  2461.           be sure to use either the <Alt> or <Ctrl> key in conjunction with
  2462.           the letter to switch to Binary or Decimal format.
  2463.  
  2464.           The Calculator Commands:
  2465.           ------------------------
  2466.  
  2467.           When you are in The Programmer's Calculator you have all of these
  2468.           commands at your disposal.  They are all listed on the Menu, but
  2469.           the Menu does not have to be visible for you to use the commands.
  2470.  
  2471.  
  2472.           The Programmer's Calculator                              37 of 94
  2473.  
  2474.  
  2475.                      - Programmer's Productivity Pack Lite 1.01 -
  2476.  
  2477.  
  2478.           Change Hot Key - To change the Hot Key that activates the
  2479.           Calculator, press <^Z>.  This will open a window asking you to
  2480.           press the key combination you would like to use to pop up the
  2481.           Calculator.  If you press a key combination that is already in
  2482.           use for another pop-up, such as the Pop-Up DOS Shell, it will
  2483.           beep and wait for you to enter another key.  Also, if you press a
  2484.           normal typing key like <A> or <B> or <F5>, that is used often,
  2485.           ProLite will beep and wait for you to enter a different key.  You
  2486.           should always use a combination of at least two keys.  Either
  2487.           <Shift>, <Alt>, or <Ctrl> should always be one of the keys in the
  2488.           key combination used as a Hot Key.  ProLite will not accept a Hot
  2489.           Key made up of two modifier keys, either, "on the fly".  You
  2490.           cannot enter <Alt><LeftShift> or any other such combination as a
  2491.           Hot Key from within the program.  That is why we didn't have you
  2492.           change Hot Keys in The Quick Start Tutorial.  You could not have
  2493.           gone back to the default <Alt><LeftShift> without using PCustom.
  2494.  
  2495.           If you decide not to change the Hot Key after having invoked this
  2496.           option, press ^@.  You could also view this as <Ctrl><TopRow2>
  2497.           since the shift key need not be pressed.  The Hot Key will remain
  2498.           unchanged and you will be able to return to the Calculator by
  2499.           pressing any key.
  2500.  
  2501.           If you are using ProLite, you may also change the hot key for the
  2502.           pop-up DOS shell through this option.
  2503.  
  2504.           TIP:
  2505.              Some Hot Keys are more effective than others.  In order to
  2506.              determine which Hot Keys are most effective, keep in mind how
  2507.              most software views your keyboard.  Most software ignores
  2508.              unrecognized keystrokes.  This is important because many of
  2509.              the keystrokes they don't recognize, they also don't pass on
  2510.              to other programs that may be present.  Using partial key
  2511.              combinations like <Alt><LeftShift> or <Ctrl><Alt> will many
  2512.              times circumvent this problem.  Since most programs expect
  2513.              something along with these modifier keys they will not take
  2514.              any action on key combinations such as these.  Therefore,
  2515.              ProLite will be able to see its Hot Key regardless of how your
  2516.              other programs deal with unrecognizable key combinations.
  2517.  
  2518.              Of course, ProLite also expects something other than modifier
  2519.              keys (like <Alt><LeftShift>) when it is waiting for keyboard
  2520.              input.  To provide you with a means of selecting these
  2521.              modifier key combinations as Hot Keys, PCustom presents them
  2522.              in a simple pop up menu from which you may choose.
  2523.  
  2524.           Change Bits - This very handy bit manipulation facility enables
  2525.           you to toggle the setting of any bit or bits in a value.  You do
  2526.           not have to be in Binary format to use this feature.  If you are
  2527.           not in Binary format when you invoke the Change Bits facility you
  2528.  
  2529.  
  2530.  
  2531.           The Programmer's Calculator                              38 of 94
  2532.  
  2533.  
  2534.                      - Programmer's Productivity Pack Lite 1.01 -
  2535.  
  2536.  
  2537.           will be placed temporarily in Binary format.  Upon completion you
  2538.           will be returned to whatever format you were in previously.
  2539.  
  2540.           The Change Bits feature is invoked by pressing <^C>.  Of course,
  2541.           if you are in Hexadecimal format <C> or <Shift><C> is a value, so
  2542.           you would need to use <Alt><C> or <Ctrl><C>.
  2543.  
  2544.           Once invoked, use the <Left> and <Right> arrow keys to move back
  2545.           and forth until the arrow is pointing at the bit you want to
  2546.           toggle.  You can also use the <Home> key to go to the leftmost
  2547.           bit and the <End> key to go the rightmost bit.  Pressing <Space>
  2548.           toggles the bit.  You can toggle the bit on or off as many times
  2549.           as you wish.  You can change as many bits as you wish.  The
  2550.           changes you make here are reflected instantly in each of the
  2551.           other numeric formats.  When you are finished, pressing <Enter>
  2552.           saves your changes, while pressing <Esc> cancels your changes.
  2553.  
  2554.           Change Sign - This is not the same as "Toggle Sign Mode" which
  2555.           changes the overall mode of the Calculator from Signed to
  2556.           Unsigned or from Unsigned to Signed.  The "Change Sign" operation
  2557.           converts the current value from negative to positive, or from
  2558.           positive to negative.    This operation is performed by pressing
  2559.           <Ctrl><Minus>.  You may use either the top row minus key, or the
  2560.           numeric keypad minus key.
  2561.  
  2562.           This is one case where you must use <Ctrl> with <Minus>.  <Alt>
  2563.           and <Shift> will not activate it.  Changing the sign will not
  2564.           function as you expect if you are in Unsigned mode.
  2565.  
  2566.           Clear All - Press <^A>.  This command resets the Calculator and
  2567.           redraws the display.  All values, including those which are saved
  2568.           in memory slots, will be reset to zero.  When you are in
  2569.           Hexadecimal format the <A> key corresponds to the value 0A Hex
  2570.           (10).  Therefore, to execute the Clear All command be sure to use
  2571.           either <Alt><A> or <Ctrl><A>.
  2572.  
  2573.           Clear Entry - Press <E>, <Alt><E>, <Shift><E>, or <Ctrl><E>.
  2574.           This command resets the current value and the pending operation
  2575.           (Add, Subtract, etc.).  If you accidentally enter the wrong value
  2576.           you can delete one digit at a time using <Del> or <BackSpace>.
  2577.           If, however, you accidentally enter the wrong mathematical
  2578.           operation you would use the Clear Entry command.  The Clear Entry
  2579.           command will affect only the current value, not the intermediate
  2580.           value (the top value).  Since <E> and <Shift><E> correspond to a
  2581.           value in hexadecimal be sure to use <Alt><E> or <Ctrl><E> when in
  2582.           the Hexadecimal format.
  2583.  
  2584.           Insert a Value - This command takes a value that was previously
  2585.           saved to one of the Calculator's four memory slots and inserts it
  2586.           into the current value.  You can invoke it in two different ways.
  2587.           Either press <^I>, or, as listed on the Menu, press <^F9>.
  2588.  
  2589.  
  2590.           The Programmer's Calculator                              39 of 94
  2591.  
  2592.  
  2593.                      - Programmer's Productivity Pack Lite 1.01 -
  2594.  
  2595.  
  2596.           Inserted values are always inserted into the current value.
  2597.           Inserting the value does not remove it from the memory slot.  You
  2598.           can insert the same value many times.
  2599.  
  2600.           If more than one memory slot contains a non zero value ProLite
  2601.           will ask you which value to insert.  A pick list will appear with
  2602.           one of the four memory slots highlighted.  The pick list window
  2603.           will always display the values in decimal.  Use the <Up> and
  2604.           <Down> arrow keys to select the proper value and press <Enter>.
  2605.  
  2606.           Park Disk(s) and Blank Screen - To blank the screen and park your
  2607.           hard disk (or disks) simply press <^P>.  This will blank the
  2608.           screen and display a clock.  The clock will move every 60
  2609.           seconds.  When the screen is initially blanked, your hard disk
  2610.           (if present) will also be "parked" on the last cylinder of the
  2611.           drive.  If you have two hard disks, both will be parked.  Parking
  2612.           simply means that the read/write heads will be positioned over
  2613.           the last cylinder.  This will not prevent other programs from
  2614.           "unparking" the disk, but if no other programs are active the
  2615.           disk will remain parked as long as the screen is blanked.  The
  2616.           hard disk parking option may be disabled with PCustom, if
  2617.           desired.  Pressing any key "unblanks" the screen and returns you
  2618.           to the Calculator.
  2619.  
  2620.           Quit the Calculator - To exit from the Calculator simply press
  2621.           <Esc>.  <Esc> will quit the current pop-up, but ProLite will
  2622.           remain in memory ready to be called up again when needed.  If you
  2623.           are using ProLite in stand-alone mode, <Esc> will quit the
  2624.           program and return you to DOS.
  2625.  
  2626.           Quitting the Calculator will not undo any customizing that you
  2627.           have done "on the fly".  Only unloading from memory or turning
  2628.           off the computer will undo your changes.  Customizing done with
  2629.           PCustom is not affected either way since it is written to disk.
  2630.  
  2631.           Save a Value - This is the companion operation to Insert a Value.
  2632.           To save a value to one of the Calculator's four memory slots,
  2633.           press <^S>,  or, as listed on the Menu, <F9>.  The Save function
  2634.           operates very intuitively.  If there is only one value present it
  2635.           will be saved to the first available memory slot.
  2636.  
  2637.           If more than one value is present, a pick list will appear and
  2638.           ProLite will ask you which one to save.  The pick list window
  2639.           will always display the value in decimal.  However, the Saved
  2640.           Values Box always displays the saved values in the current
  2641.           numeric format.  You choose by moving the highlight bar with the
  2642.           <Up> or <Down> arrow key until it highlights the correct value.
  2643.           Press <Enter> and it is saved.  If all the memory slots are
  2644.           filled, a pick list will appear and ProLite will ask you which
  2645.           one to overwrite.  Again, use the arrow keys and <Enter> to
  2646.           select.
  2647.  
  2648.  
  2649.           The Programmer's Calculator                              40 of 94
  2650.  
  2651.  
  2652.                      - Programmer's Productivity Pack Lite 1.01 -
  2653.  
  2654.  
  2655.           A value that is saved to memory stays in that memory slot even if
  2656.           it is inserted into the current value.  This lets you use that
  2657.           same value repeatedly.  Pressing <^A> clears all values in the
  2658.           Calculator, including those saved in the memory slots.
  2659.  
  2660.           Screen Refresh - <^R> will redraw the screen.  The Screen Refresh
  2661.           command will not change any values.  It will simply redraw the
  2662.           Calculator display should the need ever arise.
  2663.  
  2664.           Toggle Sign Mode - To toggle between Signed and Unsigned modes
  2665.           press <^T>.  This will change the way the values are treated
  2666.           during calculations and display.  Signed values may be negative
  2667.           or positive, whereas Unsigned values may only be positive.  See
  2668.           "The Range Of Values Available" (page 34) if you want to know how
  2669.           this affects numeric ranges.
  2670.  
  2671.           Unload from Memory - To unload ProLite from memory press
  2672.           <Alt><U>, <Alt><U> (<Alt><U> twice in a row).  You may also use
  2673.           <Ctrl><U>, <Ctrl><U>.  ProLite will first check to see if it is
  2674.           safe to unload.  If it is in fact safe it will give you a chance
  2675.           to press <Esc> to return to the Calculator, or any other key to
  2676.           actually unload ProLite from memory.  This is different than
  2677.           quitting the Calculator using <Esc>.  Pressing <Esc> returns you
  2678.           to DOS, or to whatever program you were in when you invoked
  2679.           ProLite, but it leaves ProLite in memory, ready to be called
  2680.           again.  If you unload ProLite from memory you would have to load
  2681.           ProLite again before using it.
  2682.  
  2683.           When ProLite is run in stand-alone (multitasking) mode, the
  2684.           unload command functions exactly like pressing <Esc>, it returns
  2685.           you to DOS.
  2686.  
  2687.           The Mathematical Operations:
  2688.           ----------------------------
  2689.  
  2690.           All mathematical operations are carried out by entering a value,
  2691.           pressing the key corresponding to an operation, entering another
  2692.           value, and pressing <Enter> or <=> to request a final result.  A
  2693.           whole series of calculations can be performed before requesting a
  2694.           final result.
  2695.  
  2696.           In The Programmer's Calculator, the top value in the display is
  2697.           called the "Intermediate Value", the middle value (where the
  2698.           cursor is positioned) is the "Current Value", and the lower value
  2699.           is the "Final Result".  Regardless of which numeric format you
  2700.           are using, values are always entered into the Current Value (the
  2701.           middle number).
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.           The Programmer's Calculator                              41 of 94
  2709.  
  2710.  
  2711.                      - Programmer's Productivity Pack Lite 1.01 -
  2712.  
  2713.  
  2714.               |---------------------
  2715.               |      Decimal      |
  2716.               |                 5 | <-- Intermediate Value
  2717.               |ADD              5 | <-- Current Value
  2718.               |     ------------- |
  2719.               |                10 | <-- Final Result
  2720.               |---------------------
  2721.                             Figure 3: Decimal Box Display
  2722.  
  2723.           If you do a series of calculations without requesting a final
  2724.           result, the Calculator performs the operation and updates the
  2725.           value in the Intermediate Value slot.  That way you can see where
  2726.           your calculations have brought you so far, the current value
  2727.           entered, and the mathematical function to be performed.  Also, a
  2728.           final result is not erased until you request another final result
  2729.           or Clear All (^A).  This keeps the result of a prior computation
  2730.           available without having to store it to a memory slot.
  2731.  
  2732.           By the way, it does not matter whether or not NumLock is set.
  2733.           The numeric keypad can be used with or without NumLock set.
  2734.           Since ProLite modifies the BIOS keyboard interrupts it is able to
  2735.           detect all the numeric keypad keys (including the center or 5
  2736.           key) regardless of the status of NumLock.
  2737.  
  2738.           All of the available mathematical operations are explained in
  2739.           detail below.
  2740.  
  2741.           Add - Addition is chosen by pressing <+> (Plus).  You may use the
  2742.           top row <Plus> key or the numeric keypad <Plus> key.
  2743.  
  2744.           Subtract - Subtraction is chosen by pressing <-> (Minus).  You
  2745.           may use the top row <Minus> key or the numeric keypad <Minus>
  2746.           key.
  2747.  
  2748.           Multiply - Multiplication is chosen by pressing the <*> key.  The
  2749.           asterisk key can be either the top row asterisk or the asterisk
  2750.           that shares the <PrtSc> key.  On 101/102 key enhanced keyboards
  2751.           there is a separate numeric keypad asterisk which can also be
  2752.           used.
  2753.  
  2754.           Divide - Integer division is performed using the </> (Slash) or
  2755.           <\> (Backslash) key.  This is integer division, which means that
  2756.           there are no fractional answers or decimal points.  It does not
  2757.           give a remainder, either.  To obtain the remainder you would need
  2758.           to use Modulus.  Also, since Division (DIV) is the logical
  2759.           counterpart to Modulus (MOD), which uses the <F4> key, Division
  2760.           may also be performed by using <^F4>.
  2761.  
  2762.           Modulus (Remainder) - Modulus (MOD) is chosen by pressing <F4>.
  2763.           Modulus returns the remainder of a division operation.  Modulus
  2764.           works by dividing the intermediate (top) value by the current
  2765.  
  2766.  
  2767.           The Programmer's Calculator                              42 of 94
  2768.  
  2769.  
  2770.                      - Programmer's Productivity Pack Lite 1.01 -
  2771.  
  2772.  
  2773.           (middle) value, and returning the remainder of the division (or
  2774.           zero if it divided evenly).
  2775.  
  2776.           Show Result - Obtaining a result is done by pressing either the
  2777.           <Enter> or the <=> (Equals) key.  This displays the final result
  2778.           of the calculation.  If no calculation was entered, that is, if
  2779.           the only value present is the current value, the result will
  2780.           equal the current value.
  2781.  
  2782.           The final result will remain displayed until another final result
  2783.           is requested.  This is very handy when you need to refer to the
  2784.           value later, but don't want to save it to a memory slot.
  2785.  
  2786.           Another thing that happens when a final result is requested is
  2787.           that the current and intermediate values are automatically reset
  2788.           to zero internally.  However, the screen will still display the
  2789.           old values until any other key is pressed.  The reason for this
  2790.           is that The Programmer's Calculator does its best to display as
  2791.           much useful information as possible for as long as possible.
  2792.  
  2793.           Delete Digit - Use the <BackSpace> or <Del> keys to delete one
  2794.           digit at a time from the current value.  If you need to change
  2795.           too many digits in the current value, or if what you need to
  2796.           change is the mathematical operation, use Clear Entry (^E)
  2797.           instead.
  2798.  
  2799.           Logical and Bit Manipulation Operations:
  2800.           ----------------------------------------
  2801.  
  2802.           If you are new to low level bit manipulation instructions such as
  2803.           AND, OR, XOR, NOT, etc., then please refer to Appendix A (page
  2804.           79) which explains each operation in detail.
  2805.  
  2806.           AND - AND is selected by pressing the <F1> key.  AND performs a
  2807.           logical AND on two values.  It uses the intermediate value (top
  2808.           value) and the current value (middle value).  It will return a
  2809.           value of 1 whenever both values have a 1 in the same bit
  2810.           position.
  2811.  
  2812.           NOT - NOT is selected by pressing <^F1>.  NOT performs a logical
  2813.           NOT operation on the current value.  NOT is the same as
  2814.           performing a "one's complement".  It complements each bit in a
  2815.           value by converting all 1's to 0's and all 0's to 1's.  The best
  2816.           way to see this is to watch the Binary Box as you perform the
  2817.           operation.
  2818.  
  2819.           OR - OR is chosen by pressing <F2>.  OR performs a logical OR
  2820.           operation, ORing the intermediate value with the current value.
  2821.           It will return a value of 1 wherever either or both of the values
  2822.           have a 1 in that bit position.
  2823.  
  2824.  
  2825.  
  2826.           The Programmer's Calculator                              43 of 94
  2827.  
  2828.  
  2829.                      - Programmer's Productivity Pack Lite 1.01 -
  2830.  
  2831.  
  2832.           XOR - XOR is selected by pressing <^F2>.  XOR performs a logical
  2833.           eXclusive OR operation, XORing the intermediate value with the
  2834.           current value.  It will return a value of 1 wherever either, but
  2835.           not both, values have a 1 in that bit position.
  2836.  
  2837.           Shift Left - Shift Left (SHL) is selected by pressing <F3>.
  2838.           Shift Left affects only the current value by shifting it left one
  2839.           bit position each time <F3> is pressed.  This has the same effect
  2840.           as multiplying by 2.
  2841.  
  2842.           Shift Right - Shift Right (SHR) is chosen by pressing <^F3>.
  2843.           Shift Right affects only the current value by shifting it right
  2844.           one bit position each time the command is invoked.  This has the
  2845.           same effect as dividing by 2.
  2846.  
  2847.           Rotate Left - Rotate Left (ROL) is chosen by pressing <F5>.
  2848.           Rotate Left affects only the current value.  Rotate Left
  2849.           "rotates" the value left by one bit position each time <F4> is
  2850.           pressed.  In rotation the bit that "falls off" one end of the
  2851.           value is inserted into the other end.  This can be more clearly
  2852.           visualized by watching the Binary Box as the operation is
  2853.           performed.
  2854.  
  2855.           Rotate Right - Rotate Right (ROR) is chosen by pressing <^F5>.
  2856.           Like Rotate Left, Rotate Right affects only the current value.
  2857.           The value will be rotated to the right by one bit position each
  2858.           time the Rotate Right command is invoked.  The bit that "falls
  2859.           off" the right end is reinserted on the left side.
  2860.  
  2861.           Rotate through the Carry Left - Rotate through the Carry Left
  2862.           (RCL) is chosen by pressing <F6>.  RCL affects only the current
  2863.           value.  The RCL operation is similar to the ROL (Rotate Left)
  2864.           operation in that it "rotates" the value by a certain number of
  2865.           bit positions.  The difference between RCL and ROL lies in the
  2866.           fact that with RCL the bit that "falls off" one end of a value is
  2867.           inserted into the carry flag and on the next rotate the bit that
  2868.           is stored in the carry flag is rotated into the other end of the
  2869.           value.  This can be more clearly seen by watching the Binary Box
  2870.           as this operation is executed.
  2871.  
  2872.           Unlike the other shift and rotate operations that move the value
  2873.           by one bit position each time they are invoked, RCL asks you how
  2874.           many bit positions to rotate the value.  This is because the
  2875.           value of the carry flag must be preserved between each rotation.
  2876.  
  2877.           If this is difficult to visualize, Appendix A (page 79) provides
  2878.           a detailed explanation, complete with a diagram.
  2879.  
  2880.           Rotate through the Carry Right - Rotate through the Carry Right
  2881.           (RCR) is chosen by pressing <^F6>.  RCR functions exactly like
  2882.           RCL except that the value is rotated right instead of left.
  2883.  
  2884.  
  2885.           The Programmer's Calculator                              44 of 94
  2886.  
  2887.  
  2888.                      - Programmer's Productivity Pack Lite 1.01 -
  2889.  
  2890.  
  2891.           Shift Arithmetic Left - Shift Arithmetic Left (SAL) is chosen by
  2892.           pressing the <F7> key.  Shift Arithmetic Left (SAL) is especially
  2893.           useful when using Binary Coded Decimal (BCD) values at the
  2894.           assembly language level.  SAL is very similar to the more
  2895.           commonly used Shift Left (SHL) instruction.  The major difference
  2896.           between the two lies in the fact that SAL preserves the sign of
  2897.           the value throughout the shift operation.  You could think of the
  2898.           high bit as being shifted into itself.  The best way to see this
  2899.           in action is to watch the Binary Box as you execute the
  2900.           instruction.
  2901.  
  2902.           Shift Arithmetic Right - Shift Arithmetic Right (SAR) is chosen
  2903.           by pressing <^F7>.  SAR shifts the current value right one bit
  2904.           position each time it is invoked, but the value of the high bit
  2905.           (the sign bit) is preserved.
  2906.  
  2907.           Exchange Words - Exchange words (XCHG DW) is activated by
  2908.           pressing <F8>.  Exchange words affects only the current value.
  2909.           This operation swaps the two low order words in the current
  2910.           value.
  2911.  
  2912.           Exchange Double Words - Exchange Double Words (XCHG DD) is chosen
  2913.           by pressing <^F8>.  Exchange Double Words affects the current
  2914.           value by swapping the low and high order double words.  The best
  2915.           way to visualize this operation is to watch either the Binary or
  2916.           Hexadecimal Box as you execute the instruction.
  2917.  
  2918.           Moving The Calculator's Display:
  2919.           --------------------------------
  2920.  
  2921.           The Programmer's Calculator is designed to let you see as much of
  2922.           the screen you were working on as possible.  However, the
  2923.           Calculator may cover up exactly what you most need to see.  To
  2924.           move the Calculator's display, use the following commands:
  2925.  
  2926.           Move Up - <Alt><Up>
  2927.  
  2928.           Move Down - <Alt><Down>
  2929.  
  2930.           Move to Top - <Alt><PgUp> or <Alt><Home>
  2931.  
  2932.           Move to Bottom - <Alt><PgDn> or <Alt><End>
  2933.  
  2934.           Going To The Attachments:
  2935.           -------------------------
  2936.  
  2937.           Attachments are tools in the Programmer's Productivity Pack Lite
  2938.           that are accessed through other tools.  There are two attachments
  2939.           to The Programmer's Calculator.  In other words, they are reached
  2940.           from the Calculator.  These are two commands we have not looked
  2941.           at yet.
  2942.  
  2943.  
  2944.           The Programmer's Calculator                              45 of 94
  2945.  
  2946.  
  2947.                      - Programmer's Productivity Pack Lite 1.01 -
  2948.  
  2949.  
  2950.           The Keystroke Reference Center - <F10> is marked "KeyRef".  This
  2951.           is the command that invokes The Keystroke Reference Center.  This
  2952.           attachment shows you the BIOS Keyboard Status Bytes, and a wealth
  2953.           of other information.  Rather than explain it here, we suggest
  2954.           that you go on to The Quick Start Tutorial (page 52) and The In-
  2955.           Depth Reference Guide (page 55) for The Keystroke Reference
  2956.           Center.
  2957.  
  2958.           There is one point that should be covered here that pertains to
  2959.           both attachments.  Once you have moved to the attachment, you
  2960.           must to use <Alt><Esc> to return to The Programmer's Calculator.
  2961.           If you use <Esc> you will return to the DOS prompt, or wherever
  2962.           you were when you popped up ProLite.  This is not a bug, it's
  2963.           meant to save you time.  Now, whenever you press the Hot Key for
  2964.           the Calculator you will go directly to the attachment.  ProLite
  2965.           figures that if that's where you were last, that's probably where
  2966.           you want to be now.
  2967.  
  2968.           The ASCII and Color Attribute Chart - <^F10> (Either <Shift>,
  2969.           <Alt>, or <Ctrl> with <F10>) is marked ASCII.  This is the
  2970.           command that invokes The ASCII and Color Attribute Chart.  This
  2971.           is the subject of the next Quick Start Tutorial.
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.  
  2982.  
  2983.  
  2984.  
  2985.  
  2986.  
  2987.  
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.           The Programmer's Calculator                              46 of 94
  3004.  
  3005.  
  3006.                      - Programmer's Productivity Pack Lite 1.01 -
  3007.  
  3008.  
  3009.                         -------------------------------------
  3010.                          The ASCII and Color Attribute Chart
  3011.                         -------------------------------------
  3012.  
  3013.  
  3014.           The Quick Start Tutorial
  3015.           =========================
  3016.  
  3017.           Load ProLite into memory and press the Hot Key (<Alt><LeftShift>)
  3018.           for The Programmer's Calculator.  When the Calculator display
  3019.           pops up, press <M> to bring up the Menu.  The command <^F10> is
  3020.           marked ASCII.:
  3021.  
  3022.           Pressing <^F10> closes the Calculator and opens The ASCII and
  3023.           Color Attribute Chart attachment.
  3024.  
  3025.           There is a lot more to this chart than can fit on one screen,
  3026.           regardless of the monitor you have.  That is why the most
  3027.           important commands for you to learn are the ones that move you
  3028.           around the chart.
  3029.  
  3030.              To scroll up one line at a time press <Up> Arrow.
  3031.  
  3032.              To scroll down one line at a time press <Down> Arrow.
  3033.  
  3034.              To scroll up a screenful at a time press <PgUp>.
  3035.  
  3036.              To scroll down a screenful at a time press <PgDn>.
  3037.  
  3038.              To go directly to the beginning of the chart press <Home> or
  3039.              <Ctrl><PgUp>.
  3040.  
  3041.              To go directly to the end of the chart press <End> or
  3042.              <Ctrl><PgDn>.
  3043.  
  3044.              To go directly to the middle of the chart press <5> on the
  3045.              numeric keypad.
  3046.  
  3047.           Why not take a little time and just explore your new reference
  3048.           chart?
  3049.  
  3050.           The information on the chart is self-explanatory, but, in case
  3051.           something isn't clear it is all explained in the In-Depth
  3052.           Reference Guide that follows this tutorial (page 49).
  3053.  
  3054.           If you need to leave your computer for a while and want to blank
  3055.           the screen and park the hard disk (or disks), just press <^P>.
  3056.           The screen will blank and display a clock.  Your hard disk (or
  3057.           disks) are now parked over the last cylinder.  Any key restores
  3058.           the display when you return.
  3059.  
  3060.  
  3061.  
  3062.           ASCII and Color Attribute Chart                          47 of 94
  3063.  
  3064.  
  3065.                      - Programmer's Productivity Pack Lite 1.01 -
  3066.  
  3067.  
  3068.           Press <Esc>.  You have left The ASCII Chart and are back at the
  3069.           DOS prompt, or wherever you were when you popped up The
  3070.           Programmer's Calculator.  Now press <LeftShift><Ctrl> (the hot
  3071.           key).  Instead of going to the Calculator you have come back to
  3072.           The ASCII Chart!  The Hot Key will always return you to the tool
  3073.           or attachment from which you quit or <Esc>aped.
  3074.  
  3075.           Now that you are back in The ASCII and Color Attribute Chart
  3076.           press <Alt><Esc>.  This returns you to the Calculator.  If you
  3077.           quit the Calculator now with <Esc> and then press the Hot Key,
  3078.           you will go to the Calculator and not the chart.
  3079.  
  3080.           Return to The ASCII Chart now by pressing <^F10>.  You cannot
  3081.           unload ProLite from memory from an attachment.  Try pressing
  3082.           <^U><^U>.  All you get are little beeps.  You need to return to
  3083.           the Calculator or to the DOS prompt to unload ProLite from
  3084.           memory.
  3085.  
  3086.           That is all for this Quick Start Tutorial.  For more insight into
  3087.           all of the information that The ASCII and Color Attribute Chart
  3088.           puts at your disposal read The In-Depth Reference Guide that
  3089.           follows.
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.  
  3113.  
  3114.  
  3115.  
  3116.  
  3117.  
  3118.  
  3119.  
  3120.  
  3121.           ASCII and Color Attribute Chart                          48 of 94
  3122.  
  3123.  
  3124.                      - Programmer's Productivity Pack Lite 1.01 -
  3125.  
  3126.  
  3127.                         -------------------------------------
  3128.                          The ASCII and Color Attribute Chart
  3129.                         -------------------------------------
  3130.  
  3131.  
  3132.           The In-Depth Reference Guide:
  3133.           =============================
  3134.  
  3135.           The ASCII and Color Attribute Chart is an attachment to The
  3136.           Programmer's Calculator.  The ASCII Chart is called an
  3137.           "attachment" because it is attached to the Calculator, and is
  3138.           accessed through the Calculator.
  3139.  
  3140.           You access The ASCII Chart from the Calculator by pressing
  3141.           <^F10>.  That closes the Calculator and opens The ASCII Chart.
  3142.  
  3143.           25, 43, And 50 Line Screens:
  3144.           ----------------------------
  3145.  
  3146.           The ASCII Chart is designed to work with any of the common text
  3147.           modes in use today.  Most systems operate with 25 lines of text
  3148.           visible on the screen at a time.  ProLite will use all 25 lines
  3149.           to show you as much of The ASCII Chart as possible.
  3150.  
  3151.           If you have EGA and are in 43 line mode (43 lines of text visible
  3152.           on screen at a time), The ASCII Chart will use all 43 lines to
  3153.           show you as much information as possible.
  3154.  
  3155.           If you have VGA and are in 50 line mode (50 lines of text visible
  3156.           on the screen), The ASCII Chart will appear on all 50 lines.
  3157.  
  3158.           The Columns On The Chart:
  3159.           -------------------------
  3160.  
  3161.                (Due to space limitations and printer incompatibilities,
  3162.                 this figure appears only in the complete Programmer's
  3163.                       Productivity Pack printed User's Guide.)
  3164.  
  3165.                             Figure 4: ASCII Chart Display
  3166.  
  3167.           On the left hand side of the Chart there are several columns.
  3168.           The first two columns give you the decimal and hexadecimal values
  3169.           for each character.  The third column displays the character that
  3170.           the ASCII code represents.  The fourth column is made up of three
  3171.           asterisks in the actual color that those values represent.  The
  3172.           colors are only visible on color monitors, obviously.  The
  3173.           asterisks will be in whatever brightness or other quality that
  3174.           value represents to the type of monitor that you have.  The next
  3175.           three columns describe the foreground color, the background
  3176.           color, and the attribute as it would appear on a monochrome
  3177.           display.
  3178.  
  3179.  
  3180.           ASCII and Color Attribute Chart                          49 of 94
  3181.  
  3182.  
  3183.                      - Programmer's Productivity Pack Lite 1.01 -
  3184.  
  3185.  
  3186.           The Extended Characters:
  3187.           ------------------------
  3188.  
  3189.           On the right hand side of the Chart there is an enlarged
  3190.           representation of all the graphics and box drawing characters.
  3191.           These are much easier to see than the dinky little characters
  3192.           that are actually represented by each code.
  3193.  
  3194.           If you are at the beginning of the Chart (ASCII code 00), the
  3195.           field at the right will display all the single line box
  3196.           characters and their codes.  Moving towards the end of the Chart
  3197.           (ascending ASCII values), the field at the right will display all
  3198.           the double line boxes and their codes.  On a 25 line monitor you
  3199.           can go from one field to the next by simply using <PgDn>.  The
  3200.           third field shows all double horizontal and single vertical boxes
  3201.           and their codes.  The fourth field shows all the single
  3202.           horizontal and double vertical boxes and their codes.  The next
  3203.           field shows the graph and block characters and their codes.  The
  3204.           next two fields display the common math symbols and their codes.
  3205.           The remaining fields show all the control codes.
  3206.  
  3207.           Moving Around The Chart:
  3208.           ------------------------
  3209.  
  3210.           The following commands will move you around the chart whether
  3211.           NumLock is set or not.  It makes no difference.  You can easily
  3212.           scroll or page through The ASCII Chart to find the information
  3213.           you need.
  3214.  
  3215.           Scroll Up - To scroll up one line press the <Up> arrow key.
  3216.  
  3217.           Scroll Down - To scroll down one line press the <Down> arrow key.
  3218.  
  3219.           Page Up - To scroll up one page or screenful at a time press
  3220.           <PgUp>.
  3221.  
  3222.           Page Down - To scroll down one page or screenful at a time press
  3223.           <PgDn>.
  3224.  
  3225.           Go to Beginning - To move instantly to the beginning of the Chart
  3226.           (ASCII code 00) press <Home> or <Ctrl><PgUp>.
  3227.  
  3228.           Go To Center - To move instantly to the center of the Chart
  3229.           (ASCII code 127) press the numeric keypad <5> key (the center
  3230.           key).
  3231.  
  3232.           Go to End - To move instantly to the end of the Chart (ASCII code
  3233.           255) press <END> or <Ctrl><PgDn>.
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.           ASCII and Color Attribute Chart                          50 of 94
  3240.  
  3241.  
  3242.                      - Programmer's Productivity Pack Lite 1.01 -
  3243.  
  3244.  
  3245.           Other Available Commands:
  3246.           -------------------------
  3247.  
  3248.           Park Disk(s) and Blank Screen - As in the Calculator, if you need
  3249.           to park your hard disk(s) and blank your screen while you go off
  3250.           to do something else, simply press <^P>.  Any key will restore
  3251.           your screen when you return.
  3252.  
  3253.           Exiting ProLite from The ASCII Chart - To exit from The ASCII
  3254.           Chart and return to DOS, or to the program you were in when you
  3255.           popped ProLite up, simply press <Esc>.  <Esc> always exits the
  3256.           pop-up, saving your place for when you return.
  3257.  
  3258.           Because The ASCII Chart is an "attachment" to the Calculator,
  3259.           pressing the same Hot Key that normally activates the Calculator
  3260.           will now instead pop up The ASCII Chart.  This saves you the
  3261.           trouble of going through the Calculator itself to get back to The
  3262.           ASCII Chart when it is the attachment that you were last using.
  3263.  
  3264.           Returning to the Calculator:
  3265.           ----------------------------
  3266.  
  3267.           To return to the Calculator from The ASCII Chart, press
  3268.           <Alt><Esc> instead of <Esc>.
  3269.  
  3270.           That completes the In-Depth Reference Guide for The ASCII and
  3271.           Color Attribute Chart.  As you have seen, it is a lot more useful
  3272.           than most of the pop up ASCII charts you have used in the past.
  3273.  
  3274.           You now have one more tool to help you save time while working
  3275.           with source code or other text files.  Not bad for a few minutes
  3276.           of reading!
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.           ASCII and Color Attribute Chart                          51 of 94
  3299.  
  3300.  
  3301.                      - Programmer's Productivity Pack Lite 1.01 -
  3302.  
  3303.  
  3304.                            --------------------------------
  3305.                             The Keystroke Reference Center
  3306.                            --------------------------------
  3307.  
  3308.  
  3309.           The Quick Start Tutorial:
  3310.           =========================
  3311.  
  3312.           We were rather surprised to find that this quickly became the
  3313.           favorite attachment for the people who tested the full-blown
  3314.           Programmer's Productivity Pack before it was placed on the
  3315.           market.  You are about to see why!
  3316.  
  3317.           This Quick Start Tutorial is designed to familiarize you with The
  3318.           Keystroke Reference Center in 15 minutes or less.  You'll enjoy
  3319.           this utility!
  3320.  
  3321.           First, be sure that ProLite is loaded into memory.  Type
  3322.           "ProLite" <Enter> at the DOS prompt.  Next, pop up the Calculator
  3323.           using <Alt><LeftShift>.  When the Calculator's display appears,
  3324.           press <M> to bring up the Menu.  On the Menu you will see that
  3325.           command <F10> is marked "KeyRef" .  This attachment is called The
  3326.           Keystroke Reference Center.  Press <F10> to pop up The Keystroke
  3327.           Reference Center, and say goodbye to all your charts and lists of
  3328.           scan codes and INKEY() values!
  3329.  
  3330.           Take a while to look over the display on your screen.  At the top
  3331.           it says Keystroke Reference Center, so you know you're in the
  3332.           right place.  Below it are three boxes.  The highlighted box on
  3333.           the left gives you the dBASE INKEY() value.  The highlighted one
  3334.           on the right gives you a BIOS scan code.  The center box tells
  3335.           you the version of ProLite you are using, the date, and the time.
  3336.  
  3337.           Below that it says "Press a key or key combination:".  Okay,
  3338.           press the <Space> bar.
  3339.  
  3340.           Presto!  You instantly have the scan code returned by the BIOS
  3341.           (used in most programming languages) in the right hand box, and
  3342.           the INKEY() value returned by the dBASE dialects (including dBASE
  3343.           III Plus, Clipper, Foxbase, QuickSilver, and presumably dBASE IV
  3344.           as well) in the left hand box.
  3345.  
  3346.           Now press <A>.  Now <Shift><A>.  Press <3> on the top line.
  3347.           Press <F7>.  The information on each of those keystrokes appears
  3348.           instantly.
  3349.  
  3350.           Now press <F1>.  A "Portability Note" has opened which gives you
  3351.           some important information about the dBASE INKEY() value for this
  3352.           keystroke.
  3353.  
  3354.  
  3355.  
  3356.  
  3357.           The Keystroke Reference Center                           52 of 94
  3358.  
  3359.  
  3360.                      - Programmer's Productivity Pack Lite 1.01 -
  3361.  
  3362.  
  3363.           Now press <Alt><Up> Arrow.  This time you get a different
  3364.           Portability Note.  Now try pressing <Alt><BackSpace>.  Another
  3365.           Portability Note appears.  As you can see, just about all the
  3366.           information you will ever need about keyboard return codes is now
  3367.           available at the touch of a key!
  3368.  
  3369.           With NumLock off, press <5> on your numeric keypad.  More
  3370.           information!
  3371.  
  3372.           You will probably want to press every key and key combination on
  3373.           the board just to see how much information is available, but, we
  3374.           need to move on right now.
  3375.  
  3376.           Below where you have been entering the keystrokes there is a live
  3377.           (real time) display of the values in the BIOS keyboard status
  3378.           bytes in low memory.  Watch them as you press <Alt>, <Ctrl>, the
  3379.           <LeftShift> and <RightShift> keys, <ScrollLock>, <NumLock> or
  3380.           whatever.  As you can see, the screen is instantly updated to
  3381.           show you any changes in the bit settings in the BIOS keyboard
  3382.           status bytes.
  3383.  
  3384.           As with the Calculator, The Keystroke Reference Center can be
  3385.           moved around the screen.  Since it uses 25 lines on the screen,
  3386.           you will only be able to move it up and down if you have EGA 43
  3387.           line mode, or VGA 50 line mode.
  3388.  
  3389.           Press <Alt><Left> Arrow.  The display moves one space to the
  3390.           left.  You also get the information on the key combination you
  3391.           just pressed, complete with a Portability Note.  Press <Space>
  3392.           and the Portability Note disappears.  Now press <Alt><Right>
  3393.           Arrow.  The display goes back to the right one line.  You get all
  3394.           the information on this keystroke, too.
  3395.  
  3396.           Press <Alt><Home>.  Clear the Portability Note (press <Space> for
  3397.           instance) and press <Alt><End>.  This takes you right across the
  3398.           screen.
  3399.  
  3400.           If you have 43 or 50 lines available on your screen, you can move
  3401.           the display up and down, also.  Press <Alt><Up> Arrow and
  3402.           <Alt><Down> Arrow to move a line at a time, and <Alt><PgUp> and
  3403.           <Alt><PgDn> to move the height of the whole screen.
  3404.  
  3405.           To return to DOS, or to the program you were in before you
  3406.           activated ProLite, press <Esc>.  Try it.  Notice that it pauses
  3407.           to show you the return codes for the <Esc> key.  Pressing any key
  3408.           returns you to DOS.
  3409.  
  3410.           Now, press <Alt><LeftShift> to again pop up ProLite.  There you
  3411.           are, right back where you left off.  To return to the Calculator
  3412.           from The Keystroke Reference Center, simply press <Alt><Esc>
  3413.           instead of <Esc>.  Again, it will pause to show you the return
  3414.  
  3415.  
  3416.           The Keystroke Reference Center                           53 of 94
  3417.  
  3418.  
  3419.                      - Programmer's Productivity Pack Lite 1.01 -
  3420.  
  3421.  
  3422.           codes for the <Alt><Esc> key combination.  Pressing any key will
  3423.           return you to the Calculator.
  3424.  
  3425.           That was pretty easy.  You have just completed the Quick Start
  3426.           Tutorial for ProLite's interactive Keystroke Reference Center.
  3427.           And you have also added another tool to your productivity
  3428.           toolbox.
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474.  
  3475.           The Keystroke Reference Center                           54 of 94
  3476.  
  3477.  
  3478.                      - Programmer's Productivity Pack Lite 1.01 -
  3479.  
  3480.  
  3481.                            --------------------------------
  3482.                             The Keystroke Reference Center
  3483.                            --------------------------------
  3484.  
  3485.  
  3486.           The In-Depth Reference Guide:
  3487.           =============================
  3488.  
  3489.           The Keystroke Reference Center is an elegant solution to a simple
  3490.           yet common problem.
  3491.  
  3492.           In virtually every program you write you'll find the need to
  3493.           identify a keystroke in order to determine what action to execute
  3494.           next.  In most cases this keystroke will be identified by way of
  3495.           all or part of the "Scan Code" returned by the system's ROM BIOS.
  3496.           Other specialized application development tools or languages such
  3497.           as dBASE and its various counterparts (Clipper, FoxBase,
  3498.           QuickSilver, and others), return a key code that is different
  3499.           than the one normally returned by the ROM BIOS.
  3500.  
  3501.           To further complicate matters, not all keyboards are the same.
  3502.           There are the older 83 key PC/XT keyboards, the newer 84 key
  3503.           PC/AT style keyboards, the 101/102 key "enhanced" keyboards, and
  3504.           then the compact keyboards found on many laptop computers (many
  3505.           of which are configured to act like an enhanced keyboard by
  3506.           having the same key return different values according to various
  3507.           conditions).
  3508.  
  3509.           What all this means is that most of us keep reference charts from
  3510.           books or technical manuals close at hand while programming.  We
  3511.           then refer to these books when we need to know what value is
  3512.           returned from a specific key.  Of course these books or charts
  3513.           usually do not list all of the possible key combinations.  So we
  3514.           often end up writing a separate little utility to display the
  3515.           return value from each key pressed, which we then use whenever we
  3516.           need to find out the value of a particular key or key
  3517.           combination.
  3518.  
  3519.           Needless to say, neither of these methods is an ideal solution.
  3520.           ProLite's interactive Keystroke Reference Center provides the
  3521.           solution to this common problem!
  3522.  
  3523.           First, because ProLite is memory-resident it is always available
  3524.           at the touch of a key.  Second, because we don't always use the
  3525.           same languages and tools when developing applications, ProLite's
  3526.           interactive Keystroke Reference Center provides the information
  3527.           needed for the most common keystroke return values, the BIOS scan
  3528.           codes and the dBASE INKEY() return codes, simultaneously.  Third,
  3529.           to take the solution a step further, The Keystroke Reference
  3530.           Center displays a "Portability Note" whenever a key or key
  3531.           combination requiring additional information, is pressed.
  3532.  
  3533.  
  3534.           The Keystroke Reference Center                           55 of 94
  3535.  
  3536.  
  3537.                      - Programmer's Productivity Pack Lite 1.01 -
  3538.  
  3539.  
  3540.           To round out The Keystroke Reference Center, a live (real time)
  3541.           display of each individual bit in the two BIOS keyboard status
  3542.           bytes is displayed in the lower half of the screen.
  3543.  
  3544.           Another piece of information that may be of interest to many of
  3545.           you is that ProLite modifies the normal keyboard interrupts (Int
  3546.           09h and 16h) in order to identify and use more keystrokes than
  3547.           are normally available through the BIOS services alone.  Of
  3548.           course, if you press one of these special key combinations a
  3549.           Portability Note will let you know about it.
  3550.  
  3551.           Using The Keystroke Reference Center is as simple as it could
  3552.           possibly be.  Instead of paging through a long chart, simply
  3553.           press the key or key combination that you are interested in, and
  3554.           you'll instantly have all the necessary information.
  3555.  
  3556.           How To Access The Keystroke Reference Center:
  3557.           ---------------------------------------------
  3558.  
  3559.           The Keystroke Reference Center is an attachment to The
  3560.           Programmer's Calculator.  This means that it is attached to and
  3561.           accessed through the Calculator.
  3562.  
  3563.           You access The Keystroke Reference Center from the Calculator by
  3564.           pressing <F10>.  That closes the Calculator and opens this
  3565.           attachment.
  3566.  
  3567.           The Display:
  3568.           ------------
  3569.  
  3570.           The Keystroke Reference Center display provides you with a great
  3571.           deal of information.
  3572.  
  3573.           The highlighted box at the top left gives the dBASE INKEY() value
  3574.           for any keystroke.  The highlighted box at the top right gives
  3575.           the BIOS scan code for any keystroke.  These will be set to the
  3576.           values of <F10> when you first access The Keystroke Reference
  3577.           Center because that is the key you used to access it.
  3578.  
  3579.  
  3580.  
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.           The Keystroke Reference Center                           56 of 94
  3594.  
  3595.  
  3596.                      - Programmer's Productivity Pack Lite 1.01 -
  3597.  
  3598.  
  3599.                 |-----------------------------------------------------|
  3600.                 |             Keystroke Reference Center              |
  3601.                 |-----------------------------------------------------|
  3602.                 |  dBASE Key Code:  |   ProLite   |  BIOS Scan Code:  |
  3603.                 | 11111111 11110111 | Version 1.0 | 01000100 00000000 |
  3604.                 | Hex          FFF7 |  25-MAR-91  | Hex          4400 |
  3605.                 | Dec            -9 | 01:01:00 am | Dec        17,408 |
  3606.                 |-----------------------------------------------------|
  3607.                 |       Press a key or key combination:  <F10>        |
  3608.                 |-----------------------------------------------------|
  3609.                 |             BIOS Keyboard Status Bytes:             |
  3610.                 |    Byte at 0040:0017H    |    Byte at 0040:0018H    |
  3611.                 | -------------------------+------------------------- |
  3612.                 |  1 1 0 0 0 0 0 0         |  0 0 0 0 0 0 0 0         |
  3613.                 |  | | | | | | | Rt Shift  |  | | | | | | | Left Ctrl |
  3614.                 |  | | | | | | Left Shift  |  | | | | | | Left Alt    |
  3615.                 |  | | | | | Ctrl Pressed  |  | | | | | Sys Req Press |
  3616.                 |  | | | | Alt Pressed     |  | | | | Hold State      |
  3617.                 |  | | | Scroll Lock       |  | | | Scroll Lock Press |
  3618.                 |  | | Num Lock State      |  | | Num Lock Pressed    |
  3619.                 |  | Caps Lock State       |  | Caps Lock Pressed     |
  3620.                 |  Insert State            |  Insert Pressed          |
  3621.                 |-----------------------------------------------------|
  3622.                 |   Press <Alt-Escape> to return to the Calculator.   |
  3623.                 |-----------------------------------------------------┘
  3624.                     Figure 5: Keystroke Reference Center Display
  3625.  
  3626.           The box between the two highlighted boxes tells you what version
  3627.           of ProLite you are using, the date, and the time.
  3628.  
  3629.           The lower half of the display gives you a live (real time)
  3630.           display of the values in the BIOS keyboard status bytes in low
  3631.           memory.
  3632.  
  3633.           Scan Codes and INKEY() Values:
  3634.           ------------------------------
  3635.  
  3636.           When you press a key or key combination on your keyboard, the
  3637.           software you are using must have some means of identifying or
  3638.           recognizing the key you pressed.  To enable software to recognize
  3639.           keystrokes, the BIOS in your computer translates each keystroke
  3640.           into a particular code.  Your software then uses that code to
  3641.           identify which key was pressed.  We refer to this code by various
  3642.           names, but the most common name is "Scan Code."  The Keystroke
  3643.           Reference Center displays the scan code for each key you press.
  3644.  
  3645.           The dBASE language, including the various compilers like
  3646.           Clipper, from Nantucket, return codes that are different than the
  3647.           BIOS scan codes.  To determine which key was pressed you would
  3648.           use the built-in INKEY() function.  The INKEY() values are also
  3649.           provided by The Keystroke Reference Center.
  3650.  
  3651.  
  3652.           The Keystroke Reference Center                           57 of 94
  3653.  
  3654.  
  3655.                      - Programmer's Productivity Pack Lite 1.01 -
  3656.  
  3657.  
  3658.           Portability Notes:
  3659.           ------------------
  3660.  
  3661.           Some keys are only available on  enhanced keyboards.  For
  3662.           instance, F11 and F12.  Some key combinations are recognized only
  3663.           with certain keyboards.  How do you remember which is which?  If
  3664.           you use an enhanced keyboard for software development, how do you
  3665.           make sure that users who don't have an enhanced keyboard can also
  3666.           use your program?
  3667.  
  3668.           The Keystroke Reference Center points out special keys or key
  3669.           combinations that not every keyboard can utilize.  The Keystroke
  3670.           Reference Center does this by way of "Portability Notes" which
  3671.           provide you with the information you need regarding the various
  3672.           keyboards.
  3673.  
  3674.           Moving the Display:
  3675.           -------------------
  3676.  
  3677.           There are a few keystrokes that have special meaning in The
  3678.           Keystroke Reference Center.  These include the keys used to move
  3679.           The Keystroke Reference Center display around the screen.
  3680.  
  3681.           Although these keystrokes are commands within The Keystroke
  3682.           Reference Center they will still be processed just like any other
  3683.           keystroke.  All their information, as well as any Portability
  3684.           Notes concerning them, will be displayed as the action is carried
  3685.           out.
  3686.  
  3687.           Move Left - To move the display one column left press <Alt><Left>
  3688.           (left arrow).
  3689.  
  3690.           Move Right - To move the display one column right press
  3691.           <Alt><Right>.
  3692.  
  3693.           Move to the Left Side - To move the display all the way to the
  3694.           left side of the screen press <Alt><Home>.
  3695.  
  3696.           Move to the Right Side - To move the display all the way to the
  3697.           right side of the screen press <Alt><End>.
  3698.  
  3699.           Move Up - To move the display one line up, press <Alt><Up> (up
  3700.           arrow).  You must have more than 25 lines of text visible on your
  3701.           screen to use this feature.
  3702.  
  3703.           Move Down - To move the display one line down, press <Alt><Down>.
  3704.           You must have more than 25 lines of text visible on your screen
  3705.           to use this feature.
  3706.  
  3707.  
  3708.  
  3709.  
  3710.  
  3711.           The Keystroke Reference Center                           58 of 94
  3712.  
  3713.  
  3714.                      - Programmer's Productivity Pack Lite 1.01 -
  3715.  
  3716.  
  3717.           Move to Top - To move the display all the way to the top of the
  3718.           screen, press <Alt><PgUp>.  You must have more than 25 lines of
  3719.           text visible on your screen to use this feature.
  3720.  
  3721.           Move to Bottom - To move the display all the way to the bottom of
  3722.           the screen, press <Alt><PgDn>.  You must have more than 25 lines
  3723.           of text visible on your screen to use this feature.
  3724.  
  3725.           Other Available Commands:
  3726.           -------------------------
  3727.  
  3728.           Returning to the Calculator - To return to the Calculator from
  3729.           The Keystroke Reference Center, press <Alt><Esc>.
  3730.  
  3731.           Exit from ProLite - Press <Esc> to exit from the pop-up.  This
  3732.           will enable you to pop back to the same place you left the next
  3733.           time you pop up ProLite.  Because The Keystroke Reference Center
  3734.           is an "attachment" to the Calculator, pressing the same Hot Key
  3735.           that normally activates the Calculator will instead pop up The
  3736.           Keystroke Reference Center.  This saves you the trouble of going
  3737.           through the Calculator itself to get back to The Keystroke
  3738.           Reference Center when it is the attachment you were last using.
  3739.  
  3740.  
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.  
  3767.  
  3768.  
  3769.  
  3770.           The Keystroke Reference Center                           59 of 94
  3771.  
  3772.  
  3773.                      - Programmer's Productivity Pack Lite 1.01 -
  3774.  
  3775.  
  3776.                            -------------------------------
  3777.                             Park Disk(s) and Blank Screen
  3778.                            -------------------------------
  3779.  
  3780.  
  3781.           The In-Depth Reference Guide:
  3782.           =============================
  3783.  
  3784.           You are probably aware that when the same characters are
  3785.           displayed in the same position on your screen for long periods of
  3786.           time they tend to burn a permanent image of themselves into the
  3787.           phosphorescent coating of your screen.  To avoid this many people
  3788.           use automatic screen blanking programs that blank the screen
  3789.           after a predetermined period of keyboard inactivity.  Such
  3790.           utilities are certainly useful and necessary, but many people
  3791.           feel that there is a better way to accomplish the same goal.
  3792.  
  3793.           There are some very obvious disadvantages to those particular
  3794.           utilities.  The screen is often blanked unexpectedly, which can
  3795.           sometimes be rather unsettling.  While the screen is blank it is
  3796.           not necessarily obvious whether or not the computer is turned on,
  3797.           which is an important consideration when more than one person
  3798.           might be using the machine.  Some of these utilities "eat" the
  3799.           next keystroke entered, while some do not.  Also, while you are
  3800.           away from your computer, your monitor is protected from screen
  3801.           burns, but your hard disk is not protected against head crashes.
  3802.  
  3803.           ProLite provides an alternative to the many "automatic" screen
  3804.           blanking programs.  Most users prefer to stop using their older
  3805.           screen blanking programs once they start using ProLite!
  3806.  
  3807.           ProLite never blanks your screen "automatically" (i.e.
  3808.           unexpectedly).  You are always in control.  Furthermore, when
  3809.           ProLite blanks your screen it also displays a clock on the screen
  3810.           so that you know that the computer is actually turned on.  This
  3811.           clock will never produce screen burns because it moves to a new
  3812.           position on the screen every 60 seconds.  This means that for
  3813.           every minute the clock is in a certain position, there are over
  3814.           three hours when that same position is blank.  To top it all off,
  3815.           when ProLite blanks your screen it also parks your hard disk by
  3816.           moving the read/write heads to the last cylinder.  If you have
  3817.           two hard disks, both will be parked.
  3818.  
  3819.           If you do not want to use the Disk Parking feature when you blank
  3820.           your screen you can disable that part of the utility with
  3821.           PCustom.  Refer to the PCustom In-Depth Reference Guide (page 77)
  3822.           for complete information on how to disable disk parking.
  3823.  
  3824.           ProLite's Screen Blanking and Disk Parking feature can be
  3825.           activated from either The Programmer's Calculator or from The
  3826.           ASCII and Color Attribute Chart.  In either case, the Screen
  3827.  
  3828.  
  3829.           Screen Blanking and Disk Parking                         60 of 94
  3830.  
  3831.  
  3832.                      - Programmer's Productivity Pack Lite 1.01 -
  3833.  
  3834.  
  3835.           Blanking and Disk Parking feature is invoked by pressing <P> for
  3836.           <P>ark.  You can also use <Ctrl><P> or <Alt><P>.
  3837.  
  3838.           Once activated, you may "unblank" the screen and return to where
  3839.           you left off by pressing any key.
  3840.  
  3841.  
  3842.  
  3843.  
  3844.  
  3845.  
  3846.  
  3847.  
  3848.  
  3849.  
  3850.  
  3851.  
  3852.  
  3853.  
  3854.  
  3855.  
  3856.  
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.           Screen Blanking and Disk Parking                         61 of 94
  3889.  
  3890.  
  3891.                      - Programmer's Productivity Pack Lite 1.01 -
  3892.  
  3893.  
  3894.                           ----------------------------------
  3895.                            PCustom: The Customizing Program
  3896.                           ----------------------------------
  3897.  
  3898.  
  3899.           PCustom is ProLite's companion customizing program.  You may
  3900.           never use it.  ProLite may be exactly to your liking just the way
  3901.           you received it.  You may like the colors we liked, the sounds we
  3902.           liked, the way we allocated memory.  But, it is more likely that
  3903.           even though you're happy with ProLite there are just one or two
  3904.           things you would have done differently.  This is your gateway to
  3905.           making those changes.
  3906.  
  3907.           PCustom was designed for the full-blown Programmer's Productivity
  3908.           Pack (to customize ProPak and ProSwap), so many options in
  3909.           PCustom are not relevant to ProLite.  These options will appear
  3910.           in a different video attribute and will not be usable.  The
  3911.           full-blown Programmer's Productivity Pack is also available on a
  3912.           try-before-you-buy basis.  Please refer to the PRODUCTS.DOC text
  3913.           file for complete details.
  3914.  
  3915.           Before we get started with PCustom, you should know that PCustom
  3916.           works by updating the special configuration file (PROLITE.CFG).
  3917.           This gives your custom features a "permanent" feel.  It makes the
  3918.           programs act as if they were actually custom written just for
  3919.           you!
  3920.  
  3921.           By the way, don't let the word permanent scare you.  You can
  3922.           change as many features as you want, as often as you want.
  3923.           Experiment.  Have fun!
  3924.  
  3925.  
  3926.           The Quick Start Tutorial:
  3927.           =========================
  3928.  
  3929.           If you placed PCustom into the same directory as ProLite when you
  3930.           installed the package, then you are ready to begin.  If you
  3931.           haven't done this yet, then please do so now.
  3932.  
  3933.           Start PCustom by typing "PCUSTOM" <Enter> at the DOS command
  3934.           prompt.  If you have a black-and-white (LCD, or Gas plasma)
  3935.           monitor you should type "PCUSTOM -B" (or -b, /B, /b, \b, or \B).
  3936.           This will make PCustom use the gray scale color set for its own
  3937.           screen displays.
  3938.  
  3939.           PCustom's Main Menu will appear.  The "Colors" selection is
  3940.           highlighted.  The text above the Menu tells you what the
  3941.           highlighted selection is for.  Press <Enter>.
  3942.  
  3943.  
  3944.  
  3945.  
  3946.  
  3947.           PCustom:  The Customizing Program                        62 of 94
  3948.  
  3949.  
  3950.                      - Programmer's Productivity Pack Lite 1.01 -
  3951.  
  3952.  
  3953.           This brings up the Colors Menu.  You can select one of the three
  3954.           standard color sets or design your own custom color set.  Select
  3955.           "Custom Attribute Set" and press <Enter>.
  3956.  
  3957.           This brings up the Select Colors Menu.  Select "ASCII Chart" and
  3958.           press <Enter>.
  3959.  
  3960.           Here are eight different portions of The ASCII Chart that you can
  3961.           customize to your liking.  We won't actually change anything now,
  3962.           so you can press <Esc> when you're finished looking around.  That
  3963.           pops you back to the Select Colors Menu.
  3964.  
  3965.           Select "Calculator" and press <Enter>.  This selection has its
  3966.           own Menu.  Choose one of the three options and press <Enter>.
  3967.           Make any changes you wish.  You can change your mind at any time,
  3968.           so, don't worry.  You can also restore the original colors by
  3969.           choosing one of the three default attribute sets on the Colors
  3970.           Submenu.
  3971.  
  3972.           Check out some more options from the Select Colors Menu and then
  3973.           <Esc> back to the Main Menu.  Select "Hot Keys" and press
  3974.           <Enter>.
  3975.  
  3976.           Here are the five major Hot Keys (only two apply to ProLite).
  3977.           Select one and press <Enter>.  You can choose your own or pick
  3978.           from the list.  What makes the list so useful is that you
  3979.           couldn't normally select any of those options from the keyboard.
  3980.           That's why if you change some the default Hot Keys "on the fly"
  3981.           you cannot reset them to the default value.  However, you can do
  3982.           it from PCustom.
  3983.  
  3984.           <Esc> back to the Main Menu and move to the "Sound Effects"
  3985.           option.
  3986.  
  3987.           Here you can modify the beeps, clicks, and raspberries (error
  3988.           sounds) to be just like you always thought they should be.
  3989.  
  3990.           Now move to the "Advanced Options" choice.  Here you can set the
  3991.           mode and format the Calculator starts up in, how swapping is
  3992.           handled, and a host of other things.
  3993.  
  3994.           Now move to "Exit PCustom".  Highlight "Cancel Changes" and press
  3995.           <Enter>.  This takes you out of the program without making any
  3996.           changes.
  3997.  
  3998.           Well, that's all for this tutorial.  As you can already see,
  3999.           PCustom is very easy to use, but very powerful.  You can modify
  4000.           almost any aspect of the Programmer's Productivity Pack Lite.
  4001.           Read the following In-Depth Reference Guide for a complete
  4002.           explanation of all the possibilities.
  4003.  
  4004.  
  4005.  
  4006.           PCustom:  The Customizing Program                        63 of 94
  4007.  
  4008.  
  4009.                      - Programmer's Productivity Pack Lite 1.01 -
  4010.  
  4011.  
  4012.                           ----------------------------------
  4013.                            PCustom: The Customizing Program
  4014.                           ----------------------------------
  4015.  
  4016.  
  4017.           The In-Depth Reference Guide:
  4018.           =============================
  4019.  
  4020.           PCustom is your ticket to a custom made version of the
  4021.           Programmer's Productivity Pack Lite.  PCustom gives you the
  4022.           freedom to choose.  With ProLite you do not have to adjust your
  4023.           work habits and preferences to match the software.  Instead you
  4024.           can change the software to match your work habits and
  4025.           preferences.  After all, you should be telling your computer what
  4026.           to do, not the other way around.
  4027.  
  4028.           Starting PCustom:
  4029.           -----------------
  4030.  
  4031.           When you first start PCustom, by typing "PCUSTOM" <Enter> at the
  4032.           DOS command prompt, PCustom will load and wait for your first
  4033.           choice.  Throughout the use of PCustom you will find that PCustom
  4034.           avoids making decisions for you, but rather lets you stay in
  4035.           control.  You may modify whatever you wish, and ignore that which
  4036.           you do not wish to modify.  You're the boss, and PCustom knows
  4037.           it.
  4038.  
  4039.           If you have a black-and-white (gray scale, LCD, or gas plasma)
  4040.           monitor you should type "PCUSTOM -B" (or -b, /B, /b,\b, or \B).
  4041.           This will make PCustom use the gray scale color set for its
  4042.           screen displays.
  4043.  
  4044.           How PCustom Works:
  4045.           ------------------
  4046.  
  4047.           To understand how PCustom works, it would be helpful to know a
  4048.           little about what it is that PCustom actually does to the
  4049.           PROLITE.CFG file.  Here's the basic sequence of events that occur
  4050.           during customizing:
  4051.  
  4052.           PCustom examines the current directory for the PROLITE.CFG file.
  4053.           If the file is not found, then PCustom checks the same directory
  4054.           from which it was loaded (if you are using DOS 3.0 or higher).
  4055.           If the configuration file is still not found, PCustom will check
  4056.           the directories in the DOS path.
  4057.  
  4058.           Once the file is found, PCustom reads the current settings from
  4059.           it and then set its internal values to match.  At this point
  4060.           PCustom closes the file and works only with its internal tables.
  4061.           This is why you can always change your mind about making any of
  4062.           the changes permanent.
  4063.  
  4064.  
  4065.           PCustom:  The Customizing Program                        64 of 94
  4066.  
  4067.  
  4068.                      - Programmer's Productivity Pack Lite 1.01 -
  4069.  
  4070.  
  4071.           You then use PCustom's pull down menu system to customize any and
  4072.           all features.  When you are through making any custom changes you
  4073.           desire, select the "Exit PCustom" choice on the Main Menu.  This
  4074.           brings up three additional choices (only two apply to ProLite).
  4075.           Choosing "Save Changes" will instruct PCustom to install the new
  4076.           values into the PROLITE.CFG file.  Choosing "Select (Alt-Q)"
  4077.           gives you another chance to select the file or files to actually
  4078.           modify (not relevant in ProLite).  Choosing "Cancel Changes"
  4079.           returns you to DOS without altering the .EXE or .CFG files in any
  4080.           way.
  4081.  
  4082.           We use the term "permanent" when we talk about making changes to
  4083.           the PROLITE.CFG file, but we mean "permanent" in the sense that
  4084.           they are permanent until you change them again at some future
  4085.           time.  You may customize the ProLite files as often as you wish.
  4086.  
  4087.           The PCustom Menus:
  4088.           ------------------
  4089.  
  4090.           The following information outlines each option on each Menu and
  4091.           Submenu available within PCustom.
  4092.  
  4093.           The Main Menu:
  4094.           --------------
  4095.  
  4096.           The Main Menu is the first menu to appear.  You will see the
  4097.           following:
  4098.  
  4099.                (Due to space limitations and printer incompatibilities,
  4100.                 this figure appears only in the complete Programmer's
  4101.                       Productivity Pack printed User's Guide.)
  4102.  
  4103.                              Figure 6: PCustom Main Menu
  4104.  
  4105.           The Colors option is highlighted.  If you press <Enter> it will
  4106.           be selected.  The text at the top tells you what that option is
  4107.           for.  You can select any one of the five options by moving the
  4108.           highlight bar with the <Arrow> keys.  Each of these options will
  4109.           produce its own menu.  Let's look at each one individually.
  4110.  
  4111.           The Colors Menu:
  4112.           ~~~~~~~~~~~~~~~~
  4113.           When you select the Colors option you will see the following:
  4114.  
  4115.                (Due to space limitations and printer incompatibilities,
  4116.                 this figure appears only in the complete Programmer's
  4117.                       Productivity Pack printed User's Guide.)
  4118.  
  4119.                             Figure 7: PCustom Colors Menu
  4120.  
  4121.  
  4122.  
  4123.  
  4124.           PCustom:  The Customizing Program                        65 of 94
  4125.  
  4126.  
  4127.                      - Programmer's Productivity Pack Lite 1.01 -
  4128.  
  4129.  
  4130.           The Colors option is the door to the many options available for
  4131.           choosing the colors you prefer for each and every aspect of the
  4132.           ProLite package.
  4133.  
  4134.           ProLite has two built-in color sets, one for color monitors, and
  4135.           one for monochrome monitors.  If you use a color monitor you will
  4136.           be able to change the color attribute set to your preferences.
  4137.           If you use a monochrome monitor you will be able to change the
  4138.           monochrome attribute set as desired.  If you use a gray scale
  4139.           (black and white) monitor then you will be adjusting the color
  4140.           attribute set (not the monochrome attribute set) to your
  4141.           preferences.
  4142.  
  4143.           If you have two monitors, say one color and the other monochrome,
  4144.           and two display adapters (this is common among programmers who
  4145.           spend time with a debugger), then both attribute sets will be
  4146.           relevant to your needs.  When you pop up ProLite on your color
  4147.           monitor it will automatically use the color attribute set.  When
  4148.           you pop it up on your monochrome monitor it will automatically
  4149.           use the monochrome attribute set.
  4150.  
  4151.           These are the four options you can select from this Menu:
  4152.  
  4153.              Color Attribute Set - This option restores ProLite to the same
  4154.              color attributes that were in use when ProLite was shipped.
  4155.              This is useful when you have made changes and want to quickly
  4156.              restore ProLite to a known starting point before continuing
  4157.              with the customizing of individual colors, or for just
  4158.              returning ProLite to its original color settings whenever you
  4159.              desire.
  4160.  
  4161.              Monochrome Attribute Set - Selecting this option automatically
  4162.              restores the monochrome attribute set to the values that were
  4163.              in use when ProLite was originally shipped.  You may still
  4164.              change individual attributes later if you wish.
  4165.  
  4166.              Gray Scale Attribute Set - This option sets the values of the
  4167.              color attribute set to those values that look best on a gray
  4168.              scale monitor.  These "factory set" values will give you a
  4169.              good starting place even if you prefer to change some of them
  4170.              later.  You can always move down to the "Custom Attribute Set"
  4171.              and fine tune any values you wish to change.
  4172.  
  4173.              Custom Attribute Set - This option enables you to customize
  4174.              the attribute set to best suit your individual tastes.  If you
  4175.              are using a color or gray scale monitor, you will be adjusting
  4176.              the color attribute set.  If you are using a monochrome
  4177.              monitor you will be adjusting the monochrome attribute set.
  4178.  
  4179.  
  4180.  
  4181.  
  4182.  
  4183.           PCustom:  The Customizing Program                        66 of 94
  4184.  
  4185.  
  4186.                      - Programmer's Productivity Pack Lite 1.01 -
  4187.  
  4188.  
  4189.           PCustom is smart enough to know whether you are using a
  4190.           monochrome monitor or a color monitor.  PCustom will
  4191.           automatically determine which attribute set should be used, no
  4192.           additional steps are necessary on your part.  Since gray scale
  4193.           monitors look just like color monitors to software, you need to
  4194.           use the "-B" command line parameter to tell PCustom that you have
  4195.           a black-and-white monitor.
  4196.  
  4197.           Select the Custom Attribute Set if you wish to customize any of
  4198.           the colors on your copy of ProLite.  Move the highlight bar down
  4199.           until Custom Attribute Set is highlighted and press <Enter>.
  4200.           This will bring up the Select Colors Menu.
  4201.  
  4202.           When you select the Custom Attribute Set you will see the
  4203.           following Menu appear:
  4204.  
  4205.                (Due to space limitations and printer incompatibilities,
  4206.                 this figure appears only in the complete Programmer's
  4207.                       Productivity Pack printed User's Guide.)
  4208.  
  4209.                            Figure 8: Custom Colors Submenu
  4210.  
  4211.           This is the Select Colors Menu.  You can set the colors to each
  4212.           of the eight options listed on the Menu.  Let's look at each of
  4213.           the options.
  4214.  
  4215.              ASCII Chart:  This option provides you with the means of
  4216.              customizing the colors used to display The ASCII and Color
  4217.              Attribute Chart, which is one of the attachments to The
  4218.              Programmer's Calculator.  There are eight separate aspects of
  4219.              The ASCII Chart that you can customize.  If you have a color
  4220.              monitor you can change the colors to any of the color
  4221.              combinations listed in the Color Attribute Chart.  If you have
  4222.              a monochrome monitor you will be able to customize these
  4223.              features to any of the monochrome attributes listed in the
  4224.              Color Attribute Chart.  ProLite will automatically offer you
  4225.              only those options which are possible on your monitor.
  4226.  
  4227.              These are the eight aspects of The ASCII Chart that you can
  4228.              customize.
  4229.  
  4230.                 Outline Color (Frame) - As the name implies, this option
  4231.                 enables you to change the color of the outline or frame
  4232.                 around The ASCII Chart.
  4233.  
  4234.                 Title Color (top of chart) - This option changes the color
  4235.                 of the title of the chart.
  4236.  
  4237.                 Column Heading Color - This option changes the color of the
  4238.                 text appearing at the top of each column.
  4239.  
  4240.  
  4241.  
  4242.           PCustom:  The Customizing Program                        67 of 94
  4243.  
  4244.  
  4245.                      - Programmer's Productivity Pack Lite 1.01 -
  4246.  
  4247.  
  4248.                 ASCII Code Color (Dec & Hex) - This option changes the
  4249.                 color of the decimal and hexadecimal values that appear to
  4250.                 the left of the ASCII character.
  4251.  
  4252.                 ASCII Character Color - This option changes the color of
  4253.                 the ASCII character itself, in the left hand section of the
  4254.                 chart.
  4255.  
  4256.                 Attribute Description Color - This option changes the color
  4257.                 of the words that describe the color that each attribute
  4258.                 (ASCII code) will produce when used as an attribute byte.
  4259.  
  4260.                 Large Character Color - This option enables you to change
  4261.                 the color of the enlarged ASCII characters that display in
  4262.                 the right hand section of the chart.
  4263.  
  4264.                 Large Code Color - Selecting this option enables you to
  4265.                 change the color of the decimal value listed next to each
  4266.                 of the enlarged characters in the right hand section of the
  4267.                 chart.
  4268.  
  4269.              Calculator:  This option opens the door for you to customize
  4270.              the appearance of the Calculator.  This option leads to a
  4271.              submenu which makes available three categories of color
  4272.              attributes that go into making up the overall appearance of
  4273.              the Calculator.
  4274.  
  4275.                (Due to space limitations and printer incompatibilities,
  4276.                 this figure appears only in the complete Programmer's
  4277.                       Productivity Pack printed User's Guide.)
  4278.  
  4279.                           Figure 9: Calculator Sub-Submenu
  4280.  
  4281.              Let's look at the three options on the Submenu.
  4282.  
  4283.                 Actual Calculator:  This option enables you to change each
  4284.                 individual color involved in the actual Calculator display.
  4285.                 The different portions of the display are:
  4286.  
  4287.                    Current Format Highlighting - When you switch from one
  4288.                    numeric format to another, Decimal to Hexadecimal, etc.,
  4289.                    you will notice that the format title and the pending
  4290.                    operation (if any) will be updated to appear
  4291.                    highlighted.  This option enables you to customize the
  4292.                    color of this highlighting.
  4293.  
  4294.                    Signed or Unsigned Title - This option controls the
  4295.                    color used to display the sign mode at the top center of
  4296.                    the Calculator display.
  4297.  
  4298.  
  4299.  
  4300.  
  4301.           PCustom:  The Customizing Program                        68 of 94
  4302.  
  4303.  
  4304.                      - Programmer's Productivity Pack Lite 1.01 -
  4305.  
  4306.  
  4307.                    High Word, High Nibble - The Programmer's Calculator is
  4308.                    specially designed to make it easy to separate the
  4309.                    various pieces of information present when handling
  4310.                    large values.  This is tremendously useful when keeping
  4311.                    track of 32 ones and zeros in the Binary Box.  This
  4312.                    option, and the next three that go with it, enables you
  4313.                    to make a distinct color difference between the logical
  4314.                    divisions of the 32 bit binary values.  This option
  4315.                    changes the color of the highest four bits of each
  4316.                    value.
  4317.  
  4318.                    High Word, Low Nibble - This option changes the color of
  4319.                    the second to the highest four bits of each value.
  4320.  
  4321.                    Low Word, High Nibble - This option changes the color of
  4322.                    the second to the lowest four bits of each value.
  4323.  
  4324.                    Low Word, Low Nibble - This option changes the color of
  4325.                    the lowest four bits of each value.
  4326.  
  4327.                    Normal Values Color - This option changes the appearance
  4328.                    of the values in the Decimal and Octal Boxes.
  4329.  
  4330.                    Saved Values Color - This option changes the color of
  4331.                    the four saved values that appear in the Save Window.
  4332.  
  4333.                    Information Color - This option changes the color of the
  4334.                    various pieces of identifying information present in the
  4335.                    Calculator display.
  4336.  
  4337.                    Clock and Date Color - This option changes the color of
  4338.                    the date and time displayed in the information window of
  4339.                    the Calculator.
  4340.  
  4341.                 Calculator Menu:  This option enables you to change each
  4342.                 individual color involved in the display of the
  4343.                 Calculator's Menu.  This option is best experimented with
  4344.                 to see the effect that each color change has on the overall
  4345.                 appearance of the Calculator.
  4346.  
  4347.                    Information Color - This option changes the colors of
  4348.                    the various pieces of information displayed in the
  4349.                    Calculator's Menu.
  4350.  
  4351.                    Description Color - This option changes the color of the
  4352.                    description of each command available within the
  4353.                    Calculator.
  4354.  
  4355.                    Function Keys Color - This choice changes the color of
  4356.                    the normal function key options.
  4357.  
  4358.  
  4359.  
  4360.           PCustom:  The Customizing Program                        69 of 94
  4361.  
  4362.  
  4363.                      - Programmer's Productivity Pack Lite 1.01 -
  4364.  
  4365.  
  4366.                    Shifted Function Keys - This choice changes the color of
  4367.                    the shifted function key options.
  4368.  
  4369.                 Save/Insert Pick Window:  This option enables you to change
  4370.                 each individual color involved in the display of the "pick
  4371.                 window" which is used to select which value to save or
  4372.                 insert when more than one is available.
  4373.  
  4374.                    Normal Choices Color - This is the color used to display
  4375.                    values that may be chosen.
  4376.  
  4377.                    Outline Color - This option controls the color of the
  4378.                    frame around the pick window.
  4379.  
  4380.                    Heading Color - This option controls the color of the
  4381.                    title of the pick window.
  4382.  
  4383.                    Selected Highlight - This option controls the color of
  4384.                    the pick bar, the highlighted bar that you move up and
  4385.                    down to select an option.
  4386.  
  4387.                    Empty Color - This is the color used to display empty
  4388.                    choices, choices with a value of zero.
  4389.  
  4390.                    Empty Selected Color - This is the color used when an
  4391.                    empty choice (one with a value of zero) is selected.
  4392.  
  4393.              Error Messages:  This option enables you to select the colors
  4394.              you prefer for error messages.
  4395.  
  4396.                 Outline Color - This is the color of the outline around the
  4397.                 error message window.
  4398.  
  4399.                 Heading Color - This is the color of the title of the error
  4400.                 message window.
  4401.  
  4402.                 Normal Text Color - Error messages appear in two different
  4403.                 colors in order to highlight certain information.  This is
  4404.                 the usual color for the text of an error message.
  4405.  
  4406.                 Alternate Text Color - This is the color used to highlight
  4407.                 or bring attention to some of the information displayed in
  4408.                 an error message.
  4409.  
  4410.              Keystroke Reference Center:  This option leads to the
  4411.              individual choices available for customizing the appearance of
  4412.              The Keystroke Reference Center display.
  4413.  
  4414.                 Outline - This option changes the color of the outline or
  4415.                 frame around The Keystroke Reference Center.
  4416.  
  4417.  
  4418.  
  4419.           PCustom:  The Customizing Program                        70 of 94
  4420.  
  4421.  
  4422.                      - Programmer's Productivity Pack Lite 1.01 -
  4423.  
  4424.  
  4425.                 Information - This option enables you to customize the
  4426.                 color of the various pieces of identifying information
  4427.                 present in The Keystroke Reference Center display.
  4428.  
  4429.                 Time & Date - This option enables you to customize the
  4430.                 color used to display the current time and date.
  4431.  
  4432.                 Instructions - This option enables you to change the color
  4433.                 of the instructions that appear on the screen in The
  4434.                 Keystroke Reference Center display.
  4435.  
  4436.                 Status Byte High - The BIOS keyboard status bytes are
  4437.                 displayed in two alternating colors to make it easier to
  4438.                 identify each bit individually.  Selecting this option
  4439.                 enables you to change one of these colors.
  4440.  
  4441.                 Status Byte Low - This option enables you to change the
  4442.                 alternate color used to display the BIOS keyboard status
  4443.                 bytes.
  4444.  
  4445.                 Key Code Information - This option controls the color of
  4446.                 the information appearing within the code boxes of the
  4447.                 display.
  4448.  
  4449.                 Key Code Row Heading - This option controls the color of
  4450.                 the words "Dec" and "Hex" in the codes boxes.
  4451.  
  4452.                 Note Window Outline - This option controls the outline of
  4453.                 the Portability Note window.
  4454.  
  4455.                 Note Window Text - This option controls the text in the
  4456.                 Portability Note window.
  4457.  
  4458.              Control Center Menu:  Not available in ProLite.
  4459.  
  4460.              Normal Messages:  This option leads to the individual choices
  4461.              available for customizing the appearance of the Message Window
  4462.              and the text it contains.
  4463.  
  4464.                 Outline - This option controls the color of the frame
  4465.                 around normal Message Windows.
  4466.  
  4467.                 Heading - This option controls the color of the heading of
  4468.                 normal Message Windows.
  4469.  
  4470.                 Normal Message Text - This option controls the color of
  4471.                 text displayed in normal Message Windows.
  4472.  
  4473.                 Highlighted Message Text - This option controls the color
  4474.                 of special information displayed in normal Message Windows.
  4475.  
  4476.  
  4477.  
  4478.           PCustom:  The Customizing Program                        71 of 94
  4479.  
  4480.  
  4481.                      - Programmer's Productivity Pack Lite 1.01 -
  4482.  
  4483.  
  4484.                 Alternate Message Text - This option controls the color of
  4485.                 unavailable options in Message Windows that also present
  4486.                 choices.
  4487.  
  4488.                 Normal Selected Text - This option controls the color of
  4489.                 the highlight bar in Message Windows that also present
  4490.                 choices.
  4491.  
  4492.                 Alternate Selected Text - This option controls the color of
  4493.                 the highlight bar when unavailable options are selected.
  4494.  
  4495.              Screen Blank (Clock):  This option enables you to change the
  4496.              color used to display the on screen clock during screen
  4497.              blanking and hard disk parking.
  4498.  
  4499.              Screen Grabber Box:  Not available in ProLite.
  4500.  
  4501.              Swapping In/Out Message:  This option enables you to customize
  4502.              the color of the message that appears on the bottom line of
  4503.              the screen while ProLite is swapping into or out of memory.
  4504.  
  4505.           The Hot Keys Menu:
  4506.           ~~~~~~~~~~~~~~~~~~
  4507.           The second selection on the Main Menu is to customize the Hot
  4508.           Keys used by ProLite.  When you select it you will see the
  4509.           following Menu.
  4510.  
  4511.                (Due to space limitations and printer incompatibilities,
  4512.                 this figure appears only in the complete Programmer's
  4513.                       Productivity Pack printed User's Guide.)
  4514.  
  4515.                         Figure 10: Customize Hot Keys Submenu
  4516.  
  4517.           This Menu enables you to change each of the five Hot Keys used by
  4518.           ProLite.
  4519.  
  4520.           For each option you will be presented with a list of eight of the
  4521.           most useful Hot Keys, plus an option called "Other" through which
  4522.           you may select key combinations that are not shown in the initial
  4523.           list.
  4524.  
  4525.           The Hot Keys appearing in the list are key combinations like
  4526.           <LeftShift><Ctrl> or <Ctrl><RightShift> which cannot be entered
  4527.           interactively through the "Other" option.  If you were to attempt
  4528.           to choose this type of key combination through the "Other"
  4529.           option, PCustom would not have any way of knowing if you wanted
  4530.           <Ctrl><Alt> or if you intended to follow it up with another
  4531.           letter like <Ctrl><Alt><P>.  Those two modifier key combinations
  4532.           don't normally produce a scan code.  You can prove this by trying
  4533.           them on The Keystroke Reference Center.  PCustom presents a list
  4534.           of these types of keys and accepts what you pick from that list.
  4535.  
  4536.  
  4537.           PCustom:  The Customizing Program                        72 of 94
  4538.  
  4539.  
  4540.                      - Programmer's Productivity Pack Lite 1.01 -
  4541.  
  4542.  
  4543.                (Due to space limitations and printer incompatibilities,
  4544.                 this figure appears only in the complete Programmer's
  4545.                       Productivity Pack printed User's Guide.)
  4546.  
  4547.                              Figure 11: Hot Keys Submenu
  4548.  
  4549.           The same eight Hot Keys are listed for each of the five tools or
  4550.           functions that use Hot Keys.  Any key which is dim is already in
  4551.           use.  You cannot select the same Hot Key for two functions.  The
  4552.           five tools or functions are the following:
  4553.  
  4554.              Calculator and Attachments - This option changes the Hot Key
  4555.              used to pop up The Programmer's Calculator.  Because the
  4556.              current attachment might be The ASCII Chart or The Keystroke
  4557.              Reference Center rather than the Calculator, this option
  4558.              effectively controls the Hot Key used to pop up any of the
  4559.              Calculator attachments.
  4560.  
  4561.              Control Center Menu - Not available in ProLite.
  4562.              Screen Grabber - Not available in ProLite.
  4563.              Start Recording - Not available in ProLite.
  4564.              Stop Recording - Not available in ProLite.
  4565.  
  4566.              Pop-Up DOS Shell - This option enables you to select the Hot
  4567.              Key used to activate the Pop-Up DOS Shell capability in
  4568.              ProLite.
  4569.  
  4570.           Note:  You should avoid <Alt><LeftShift> and <Ctrl><LeftShift> as
  4571.           hot keys.
  4572.  
  4573.           The Sound Effects Menu:
  4574.           ~~~~~~~~~~~~~~~~~~~~~~~
  4575.           The third choice on the Main Menu enables you to customize the
  4576.           sound effects produced by ProLite.  Selecting this option brings
  4577.           up the Sound Effects Menu.
  4578.  
  4579.                (Due to space limitations and printer incompatibilities,
  4580.                 this figure appears only in the complete Programmer's
  4581.                       Productivity Pack printed User's Guide.)
  4582.  
  4583.                           Figure 12: Sound Effects Submenu
  4584.  
  4585.           This Menu provides you with a simple method of customizing the
  4586.           various sound effects used within ProLite.  Alter each effect
  4587.           until it sounds the way you prefer on your particular machine.
  4588.  
  4589.              Beep Sound - The beep sound is the sound ProLite makes when
  4590.              you press a key it doesn't understand, or when something
  4591.              occurs that you should know about.
  4592.  
  4593.  
  4594.  
  4595.  
  4596.           PCustom:  The Customizing Program                        73 of 94
  4597.  
  4598.  
  4599.                      - Programmer's Productivity Pack Lite 1.01 -
  4600.  
  4601.  
  4602.                 You will be able to set the frequency or pitch of the tone
  4603.                 and its duration.
  4604.  
  4605.              Click Sound - The click sound is the sound ProLite makes when
  4606.              you switch formats or toggle the sign in The Programmer's
  4607.              Calculator.
  4608.  
  4609.                 You will be able to set the frequency or pitch of the tone
  4610.                 and its duration.
  4611.  
  4612.              Error Sound - The error sound is the sound ProLite makes when
  4613.              an error occurs or when ProLite is unable to carry out your
  4614.              instructions.  This sound is produced differently than the
  4615.              other two sounds.
  4616.  
  4617.                 The error sound is made by sounding the beep, pausing,
  4618.                 sounding the click, pausing, and then repeating this a
  4619.                 specified number of times.
  4620.  
  4621.                 You can easily change the duration of the pause and the
  4622.                 number of times the sounds are repeated in order to obtain
  4623.                 the error effect.
  4624.  
  4625.           The Advanced Options Menu:
  4626.           ~~~~~~~~~~~~~~~~~~~~~~~~~~
  4627.           The fourth option on the Main Menu is Advanced Options.  This is
  4628.           perhaps the most frequently chosen Main Menu option.  This option
  4629.           leads to several submenus that enable you to change many features
  4630.           that do not fall under the other Main Menu choices.  This could
  4631.           almost be called the "Miscellaneous Options" choice on the Main
  4632.           Menu.  Selecting this option will bring up the Advanced Options
  4633.           Menu.
  4634.  
  4635.           When this option is selected you will see the following Menu
  4636.           appear:
  4637.  
  4638.                (Due to space limitations and printer incompatibilities,
  4639.                 this figure appears only in the complete Programmer's
  4640.                       Productivity Pack printed User's Guide.)
  4641.  
  4642.                          Figure 13: Advanced Options Submenu
  4643.  
  4644.           The following information explains each of the seven options and
  4645.           what features it enables you to customize.
  4646.  
  4647.              Calculator:  This option brings up a Submenu that enables you
  4648.              to change the default mode and format for the Calculator when
  4649.              it is first popped up.
  4650.  
  4651.  
  4652.  
  4653.  
  4654.  
  4655.           PCustom:  The Customizing Program                        74 of 94
  4656.  
  4657.  
  4658.                      - Programmer's Productivity Pack Lite 1.01 -
  4659.  
  4660.  
  4661.                 Start up Numeric Mode:  This option enables you to
  4662.                 determine whether The Programmer's Calculator initially
  4663.                 starts up in Signed or Unsigned mode.
  4664.  
  4665.                 Start up Numeric Format:  This option enables you to select
  4666.                 the numeric format (Decimal, Hexadecimal, Binary, or Octal)
  4667.                 The Programmer's Calculator will be in when it is first
  4668.                 started.
  4669.  
  4670.              cApture:  Not available in ProLite.
  4671.  
  4672.              Character Filter Method:  Not available in ProLite.
  4673.              Replacement Character:  Not available in ProLite.
  4674.              Screen Capture File Extension:  Not available in ProLite.
  4675.              Grabber:  Not available in ProLite.
  4676.  
  4677.              Swap Control:  This option opens up a sub-menu with several
  4678.              options which control how ProLite handles the swapping
  4679.              operation.
  4680.  
  4681.                 First Swap Path:  When ProLite swaps to disk it swaps into
  4682.                 files that are marked with the "hidden" attribute.  This
  4683.                 option controls where the first swap file will be placed.
  4684.                 PCustom will verify your input, so be sure to specify only
  4685.                 valid (existing) drives and directories.  Floppy disks are
  4686.                 not acceptable for swapping purposes, but Bernoulli drives
  4687.                 are fine.  This is the same path that will be used by the
  4688.                 pop-up DOS shell for its swap file as well.  Do not specify
  4689.                 a filename, only a pathname.
  4690.  
  4691.                 Second Swap Path:  This option is just like the previous
  4692.                 option except it controls the path for the second swap
  4693.                 file.  If you use the "-M" command line option, or choose
  4694.                 "Sacrifice speed for space" under the "Swap Tuning" option
  4695.                 (below) then the second swap file will not be used at all.
  4696.  
  4697.                 Pop-Up DOS Shell:  This determines whether the pop-up DOS
  4698.                 shell capabilities will be available when ProLite is
  4699.                 resident.  The only time you will not want the pop-up DOS
  4700.                 shell enabled is when you are using a DOS version earlier
  4701.                 than 3.0, or when you are trying to avoid conflicts with
  4702.                 another program.
  4703.  
  4704.                 Max Size of DOS Shell:  The size of the DOS shell can be
  4705.                 controlled to a certain extent.  The smallest it can be is
  4706.                 about 124K bytes.  The largest it can be is the amount of
  4707.                 memory that was available when ProLite was loaded (less
  4708.                 about 20K).  Why would you want to change the size of the
  4709.                 DOS shell?  The larger the shell, the longer it will take
  4710.                 to swap in and out, and the more disk space or EMS/XMS
  4711.                 memory it will require.  By decreasing the maximum size of
  4712.  
  4713.  
  4714.           PCustom:  The Customizing Program                        75 of 94
  4715.  
  4716.  
  4717.                      - Programmer's Productivity Pack Lite 1.01 -
  4718.  
  4719.  
  4720.                 the DOS shell you will conserve resources and speed up the
  4721.                 swapping process.  The default is "All Available Memory".
  4722.  
  4723.                 EMS Swapping:  This option controls whether EMS (Expanded)
  4724.                 memory may be used for swapping purposes.  It may be
  4725.                 enabled or disabled.  The default is "Enabled".
  4726.  
  4727.                 XMS Swapping:  This option controls whether XMS (Extended)
  4728.                 memory may be used for swapping purposes.  It may be
  4729.                 enabled or disabled.  The default is "Enabled".
  4730.  
  4731.                 Swap Message (EMS/XMS):  This controls the display of the
  4732.                 "Swapping In/Out" message that appears on the bottom line
  4733.                 of the screen during the swapping operation.  Generally the
  4734.                 message should be displayed.  If, for some reason, you
  4735.                 don't want this message, simply turn it off here.
  4736.  
  4737.                 Prefer EMS over XMS:  When both EMS and XMS memory swapping
  4738.                 are enabled, this option controls which one is tried first.
  4739.                 ProLite will try one, if there's not enough memory
  4740.                 available it will try the other.  This option controls
  4741.                 whether EMS is tried before XMS memory, or vice versa.
  4742.  
  4743.                 Disk Swapping:  This option controls whether swapping to
  4744.                 disk is allowed.  Normally ProLite will swap to disk only
  4745.                 when absolutely necessary (when there is insufficient EMS
  4746.                 or XMS memory, or when EMS/XMS swapping is disabled).  With
  4747.                 this option you can instruct ProLite to abort during
  4748.                 loading if there is not enough EMS or XMS memory - in other
  4749.                 words, never use disk swapping.
  4750.  
  4751.                 Swap Tuning (XMS/Disk only):  When swapping to disk or XMS
  4752.                 memory, ProLite normally uses two files or two memory
  4753.                 blocks.  This takes up more disk space or more XMS memory,
  4754.                 but it results in a very fast swapping operation.  If you
  4755.                 prefer conserving disk space or XMS memory, at the expense
  4756.                 of speed, this option makes it easy.
  4757.  
  4758.              Registered To:  We keep track of registered versions by serial
  4759.              number, but most people don't like being just a number.  This
  4760.              option enables registered users to record their name or
  4761.              company name so that ProLite and PCustom will display
  4762.              "Registered to <your name>" when they start.  This lets you
  4763.              personalize ProLite and PCustom.
  4764.  
  4765.              Rename ProPak:  Not available in ProLite.
  4766.  
  4767.              Miscellaneous:  This option takes you a step deeper into
  4768.              ProLite's inner workings.
  4769.  
  4770.  
  4771.  
  4772.  
  4773.           PCustom:  The Customizing Program                        76 of 94
  4774.  
  4775.  
  4776.                      - Programmer's Productivity Pack Lite 1.01 -
  4777.  
  4778.  
  4779.                 Key Recording FileName Extension:  Not available in
  4780.                 ProLite.
  4781.                 Read Key Recordings from File:  Not available in ProLite.
  4782.                 Keystroke Playback Delay:  Not available in ProLite.
  4783.                 Memory Reserved for Recordings:  Not available in ProLite.
  4784.  
  4785.                (Due to space limitations and printer incompatibilities,
  4786.                 this figure appears only in the complete Programmer's
  4787.                       Productivity Pack printed User's Guide.)
  4788.  
  4789.                         Figure 14: Miscellaneous Sub-Submenu
  4790.  
  4791.                 DOS Print, File Pick Window:  Not available in ProLite.
  4792.  
  4793.                 Screen Blanking Options:  When ProLite blanks your screen
  4794.                 and displays a moving clock, it also parks your hard disk.
  4795.                 If you have two hard disks, ProLite will park both of them.
  4796.                 Parking simply means positioning the read/write heads over
  4797.                 the last cylinder on the hard disk.  This is simply a
  4798.                 preventive measure or safety feature.  If you prefer, you
  4799.                 may instruct ProLite to NOT park the hard disk or disks
  4800.                 when blanking the screen.  This submenu option enables you
  4801.                 to do that if you desire.
  4802.  
  4803.                 Use EMS Memory for overlays:  Not available in ProLite.
  4804.  
  4805.                 Return to application with:  This option is really only of
  4806.                 use to those who have EGA cards.  When ProLite opens up a
  4807.                 window it records the previous cursor size and position so
  4808.                 that the cursor can later be restored exactly as it was
  4809.                 when ProLite was popped up.  Sometimes the cursor size will
  4810.                 not be restored properly due to a bug in the EGA's ROM BIOS
  4811.                 extensions.  To get around this problem, this option
  4812.                 enables you to instruct ProLite to always restore the
  4813.                 common two line cursor (a cursor with the bottom two scan
  4814.                 lines blinking).  Most user's will never need this option.
  4815.                 You'll know if you are one of those who needs to use it.
  4816.  
  4817.                 Overlay Buffer Size Supplement:  Not available in ProLite.
  4818.  
  4819.                 Microsoft Quick Environment Fix:  This option is only
  4820.                 important to people who use the newer versions of the
  4821.                 Microsoft Quick Environments - such as QuickBasic 4.5,
  4822.                 Quick C 2.0, etc.  This option will enable ProLite to
  4823.                 safely pop-up over these environments.  When operating in
  4824.                 non-swapping mode (the "-N" or "-T" command line option),
  4825.                 ProLite will normally not work with the Quick Environments.
  4826.                 This option tells ProLite to deal with this special case
  4827.                 when it is running in non-swapping mode.
  4828.  
  4829.  
  4830.  
  4831.  
  4832.           PCustom:  The Customizing Program                        77 of 94
  4833.  
  4834.  
  4835.                      - Programmer's Productivity Pack Lite 1.01 -
  4836.  
  4837.  
  4838.           The Exit PCustom Menu:
  4839.           ~~~~~~~~~~~~~~~~~~~~~~
  4840.           The fifth option on the Main Menu is Exit PCustom.  This will
  4841.           take you back to the DOS prompt.  You can also select whether to
  4842.           save or cancel the changes you have made.  If you select this
  4843.           option the Exit PCustom Menu will appear.
  4844.  
  4845.           When this option is selected you will see the following Menu:
  4846.  
  4847.                (Due to space limitations and printer incompatibilities,
  4848.                 this figure appears only in the complete Programmer's
  4849.                       Productivity Pack printed User's Guide.)
  4850.  
  4851.                            Figure 15: Exit PCustom Submenu
  4852.  
  4853.              Save Changes:  This option tells PCustom to write the changes
  4854.              you have specified into the PROLITE.CFG file.
  4855.  
  4856.              Select (Alt-Q):  Not available in ProLite.
  4857.  
  4858.              Cancel Changes:  This option enables you to return to DOS
  4859.              without altering the PROLITE.CFG file in any way.  This option
  4860.              cancels any changes you have made and exits from PCustom.
  4861.  
  4862.  
  4863.                             -----------------------------
  4864.                               Miscellaneous Information
  4865.                             -----------------------------
  4866.  
  4867.  
  4868.           Change History:
  4869.           ===============
  4870.  
  4871.           Please refer to the HISTORY.DOC text file for the complete change
  4872.           history of the Programmer's Productivity Pack Lite.
  4873.  
  4874.  
  4875.  
  4876.  
  4877.  
  4878.  
  4879.  
  4880.  
  4881.  
  4882.  
  4883.  
  4884.  
  4885.  
  4886.  
  4887.  
  4888.  
  4889.  
  4890.  
  4891.           PCustom:  The Customizing Program                        78 of 94
  4892.  
  4893.  
  4894.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  4895.  
  4896.  
  4897.                                      ------------
  4898.                                       Appendix A
  4899.                                      ------------
  4900.  
  4901.  
  4902.           The Bits and the Bytes:
  4903.           =======================
  4904.           This appendix provides basic information concerning bits and bit
  4905.           level operations.  The primary source for this brief overview was
  4906.           Charles Petzold's "PC Tutor" column in the August, 1987, issue of
  4907.           "PC Magazine" (Volume 6, Number 14).
  4908.  
  4909.           TIP:
  4910.              If you are new to hexadecimal and binary arithmetic, we
  4911.              recommend that you find a copy of Jeff Duntemann's excellent
  4912.              book "Assembly Language from Square One", published by Scott,
  4913.              Foresman and Company.  Chapter One of this book contains the
  4914.              clearest and most entertaining introduction to the binary and
  4915.              hexadecimal numbering systems that we have ever seen.TIP
  4916.  
  4917.           For the sake of simplicity, we'll discuss the details of bits
  4918.           from the standpoint of 16 bit systems.  16 bit systems include
  4919.           IBM PC's, XT's, AT's, and some PS/2's.  For this discussion, when
  4920.           we say "16 bit system" we are referring to the microprocessor
  4921.           itself, not necessarily all the hardware to which it is
  4922.           connected.  If you work with 32 bit systems like the newer 80386
  4923.           machines, they are just twice the size, in bits, of 16 bit
  4924.           systems.
  4925.  
  4926.           On the most basic level, your computer works with bits.  A bit is
  4927.           a concrete, real value in your computer.  A bit is simply a state
  4928.           - on/off, yes/no, true/false, or 1/0, depending upon how you like
  4929.           to think of them.
  4930.  
  4931.           Handling bits one at a time would be a very complicated and
  4932.           inefficient process for us humans, so we deal with bits in
  4933.           groups.  The most common group of bits is called a "byte," which
  4934.           is simply a group made up of 8 individual bits.
  4935.  
  4936.           Bits are usually represented using the numbers one (1) and zero
  4937.           (0).  In fact, these are the only numbers that a single bit can
  4938.           represent.  Numbers consisting solely of 1's and 0's are called
  4939.           binary numbers, because only two digits make up the entire number
  4940.           system.  We are more accustomed to the Decimal system in which 10
  4941.           digits (0-9) make up the entire number system.
  4942.  
  4943.           Performing mathematical operations on binary numbers is much like
  4944.           performing mathematical operations on decimal numbers, except
  4945.           only 2 digits (0 and 1) are used.
  4946.  
  4947.  
  4948.  
  4949.  
  4950.           Bits and Bytes; A Brief Tutorial                         79 of 94
  4951.  
  4952.  
  4953.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  4954.  
  4955.  
  4956.           For example, in Decimal format, "1 + 1 = 2", but binary numbers
  4957.           don't have a digit like "2", so we carry the 1, just like we do
  4958.           with decimal numbers.  In decimal numbers when you add "9 + 1"
  4959.           there is no digit to represent a value higher than 9, so we carry
  4960.           one place as follows:
  4961.  
  4962.                Decimal:   9
  4963.                         + 1
  4964.                         ----
  4965.                          10
  4966.  
  4967.                Binary is the same:   1
  4968.                                    + 1
  4969.                                    ----
  4970.                                     10
  4971.  
  4972.           With decimal numbers, each time a digit is moved left one place,
  4973.           the number increases by a power of 10.  If you take the decimal
  4974.           value 10 and move it left one place you get the number 100 which
  4975.           is 10 times greater than the value with which you started.
  4976.  
  4977.           Binary numbers work like this too.  Each time you move a binary
  4978.           value left one place the value increases by a power of two.
  4979.  
  4980.           The following chart shows a byte size value (8 bits) and the
  4981.           result each time a digit is shifted left one place, this should
  4982.           give you a better picture of how binary numbers work:
  4983.  
  4984.              Binary      Decimal
  4985.               value      equivalent
  4986.                --------  ----------
  4987.              00000000      0
  4988.              00000001      1
  4989.              00000010      2
  4990.              00000100      4
  4991.              00001000      8
  4992.              00010000     16
  4993.              00100000     32
  4994.              01000000     64
  4995.              10000000    128
  4996.  
  4997.           ProLite's Calculator is an excellent tool to help see this first
  4998.           hand.  ProLite's Calculator enables you to shift values left and
  4999.           right, rotate them left and right, and perform a myriad of
  5000.           different operations, all the while showing you the individual
  5001.           bit settings.  Watching the bit settings in the binary values
  5002.           will show you exactly what is happening as you perform each
  5003.           operation.
  5004.  
  5005.  
  5006.  
  5007.  
  5008.  
  5009.           Bits and Bytes; A Brief Tutorial                         80 of 94
  5010.  
  5011.  
  5012.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  5013.  
  5014.  
  5015.           The following chart shows the binary values corresponding to the
  5016.           decimal numbers from 1 to 10, this should give you a good idea of
  5017.           how binary numbers are used to add, subtract, and do other
  5018.           mathematical operations:
  5019.  
  5020.              Binary   Decimal
  5021.              value    equivalent
  5022.              ------   ----------
  5023.  
  5024.              0001        1
  5025.              0010        2
  5026.              0011        3
  5027.              0100        4
  5028.              0101        5
  5029.              0110        6
  5030.              0111        7
  5031.              1000        8
  5032.              1001        9
  5033.              1010       10
  5034.  
  5035.  
  5036.           As you can see:
  5037.  
  5038.                in Binary:               1
  5039.                                       + 1
  5040.                                       ---
  5041.                                        10
  5042.  
  5043.                then adding another 1:  10
  5044.                                       + 1
  5045.                                       ---
  5046.                                        11
  5047.  
  5048.                and another:            11
  5049.                                       + 1
  5050.                                       ---
  5051.                                       100
  5052.  
  5053.                and so forth.
  5054.  
  5055.           Why is all this binary stuff important?  What does it have to do
  5056.           with programming my computer?  Well, your computer's
  5057.           microprocessor manipulates groups of bits in its registers.  A
  5058.           register is simply a storage location built right into the chip
  5059.           itself.  This means the processor can manipulate values in these
  5060.           registers very quickly, because it doesn't have to get the value
  5061.           from memory somewhere else in the system.
  5062.  
  5063.           The types of microprocessors we are discussing generally
  5064.           manipulate 8 or 16 bits at a time in their registers.  The
  5065.           registers, by the way, are either 8 or 16 bits wide.
  5066.  
  5067.  
  5068.           Bits and Bytes; A Brief Tutorial                         81 of 94
  5069.  
  5070.  
  5071.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  5072.  
  5073.  
  5074.           In virtually every field of business, science, and life in
  5075.           general, we make up names for things.  The computer field is no
  5076.           different.  When we group bits together into logical units, we
  5077.           have a name for each unit.  We've already discussed the "BYTE"
  5078.           which is a collection of 8 bits that are treated as a single unit
  5079.           or group.  A unit with 4 bits is half of a byte, so logically, it
  5080.           is called a "NIBBLE" (also spelled "nybble").  Moving in the
  5081.           other direction, a group of 16 bits (two bytes), is called a
  5082.           "WORD".  A group of 32 bits (four bytes) is called a "DOUBLE
  5083.           WORD".
  5084.  
  5085.           Knowing this, much of the mystique behind these terms should now
  5086.           be cleared up.  Learning a few new terms is not unique to the
  5087.           computer industry, if you were a stock broker you would have to
  5088.           learn the difference between a put and a call, if you were a
  5089.           sailor you would have to learn the difference between port and
  5090.           starboard.  The computer field is like any other field.  There
  5091.           are new terms to learn, but the result is it will be easier to
  5092.           say exactly what you mean and have others understand exactly what
  5093.           you are talking about.
  5094.  
  5095.           Let's take a look at the range of values that can be represented
  5096.           by various groups of bits.  Obviously, when you have a known
  5097.           amount of space in which to store a number, there is a limit to
  5098.           the size of the number that can be stored there.  Along these
  5099.           same lines, if you have enough space to store anything from 0 to
  5100.           10 but you want to add the ability to use negative numbers as
  5101.           well, then the same storage space will hold anything from -5 to
  5102.           +5.  After all, we can only store a limited number of unique
  5103.           values in a particular storage space.
  5104.  
  5105.           An 8 bit value, a byte, can represent any decimal number (whole
  5106.           number) between 0 and 255.  If you want to be able to include
  5107.           negative numbers, then we can represent any value from -127 to
  5108.           +128 with 8 bits.
  5109.  
  5110.           Numbers that can be either positive or negative are called
  5111.           "SIGNED" numbers.  Logically, numbers that can only be positive
  5112.           are called "UNSIGNED" numbers.
  5113.  
  5114.           A 16 bit value, a word, can represent any decimal whole number
  5115.           between 0 and 65,535.  If you are using signed numbers, a 16 bit
  5116.           word can represent any decimal whole number from -32,767 to
  5117.           +32,768.
  5118.  
  5119.           A 32 bit value, a double word, can represent any decimal whole
  5120.           number between 0 and 4,294,967,295.  A signed 32 bit double word
  5121.           can represent any whole number between -2,147,483,648 and
  5122.           +2,147,483,647.
  5123.  
  5124.  
  5125.  
  5126.  
  5127.           Bits and Bytes; A Brief Tutorial                         82 of 94
  5128.  
  5129.  
  5130.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  5131.  
  5132.  
  5133.           This should help to explain why so many software products on the
  5134.           market have similar limits for various operations.  When working
  5135.           with a computer you have to stay within the limits of what it is
  5136.           able to accomplish using its particular design.  Of course we
  5137.           haven't even touched on the subject of numbers that can have
  5138.           something after the decimal point.  Fractional numbers, often
  5139.           called "floating point" numbers in the computer industry, are an
  5140.           entirely different subject and we won't go into detail on them
  5141.           here.  Suffice it to say, unless you are using a math coprocessor
  5142.           chip, floating point math must be performed with software as the
  5143.           processor itself does not understand fractional values.
  5144.  
  5145.           Let's take a brief look at the "logical" operations that your
  5146.           computer can perform.  This will also help you to understand the
  5147.           various operations available within ProLite's Programmer's
  5148.           Calculator.
  5149.  
  5150.           The first operation we'll look at is one of the most commonly
  5151.           used.  The "AND" operation.  Notice we said "AND" and not "ADD".
  5152.           "AND" and "ADD" are two entirely different operations.
  5153.  
  5154.  
  5155.           AND - When you AND two bits together they produce a 1 only if
  5156.           both of the original bits are a 1.
  5157.  
  5158.                       0      0      1      1
  5159.                   AND 0  AND 1  AND 0  AND 1
  5160.                   -----  -----  -----  -----
  5161.           equals      0      0      0      1
  5162.  
  5163.  
  5164.           This is usually shown by way of a "truth table" which shows how
  5165.           the operation works.  A truth table for the AND operator might
  5166.           look something like this:
  5167.  
  5168.  
  5169.                    AND|  0  |  1
  5170.                   ----+-----+-----
  5171.                     0 |  0  |  0
  5172.                   ----+-----+-----
  5173.                     1 |  0  |  1
  5174.  
  5175.  
  5176.           You read the table by picking one value from the top line and
  5177.           drawing an imaginary line straight down, pick the other value
  5178.           from the left side and draw an imaginary line horizontally to the
  5179.           right.  Where these two imaginary lines intersect is the result
  5180.           you get when you AND the values together.
  5181.  
  5182.  
  5183.  
  5184.  
  5185.  
  5186.           Bits and Bytes; A Brief Tutorial                         83 of 94
  5187.  
  5188.  
  5189.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  5190.  
  5191.  
  5192.           Taking this concept further, to 8 or 16 bit numbers, merely
  5193.           involves lining up the numbers one above the other like so:
  5194.  
  5195.  
  5196.                                   00101011
  5197.                               AND 01001000
  5198.                                   --------
  5199.                                   00001000
  5200.  
  5201.  
  5202.           As you can see, only one of the bits in these two bytes have
  5203.           matching 1's, therefore only that bit produces a 1 for an answer.
  5204.  
  5205.  
  5206.           NOT - The NOT operator is a little bit different than the AND
  5207.           operator.  NOT works only on one value, rather than comparing two
  5208.           values with each other.  NOT converts all 0's to 1's and vice
  5209.           versa.  The NOT truth table looks like this:
  5210.  
  5211.                               NOT | 1 | 0
  5212.                              -----+---+---
  5213.                                   | 0 | 1
  5214.  
  5215.  
  5216.           The result is what is known as a "one's complement." In 8086/8088
  5217.           assembly language there is a similar instruction called NEG.  NEG
  5218.           goes one step further than NOT, after obtaining the one's
  5219.           complement of a number, the NEG instruction adds 1 to it, giving
  5220.           you the "two's complement" of the original value.  Using
  5221.           ProLite's "Change Sign" command produces the same results as the
  5222.           NEG instruction.
  5223.  
  5224.  
  5225.           OR - The OR operator, like the AND operator, compares two values
  5226.           and produces a result.  OR produces a 1 if either of the two
  5227.           inputs are a 1.  The truth table for an OR looks like this:
  5228.  
  5229.                               OR |  0  |  1
  5230.                             -----+-----+-----
  5231.                                0 |  0  |  1
  5232.                             -----+-----+-----
  5233.                                1 |  1  |  1
  5234.  
  5235.  
  5236.  
  5237.  
  5238.  
  5239.  
  5240.  
  5241.  
  5242.  
  5243.  
  5244.  
  5245.           Bits and Bytes; A Brief Tutorial                         84 of 94
  5246.  
  5247.  
  5248.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  5249.  
  5250.  
  5251.           XOR - The XOR (eXclusive OR) operator produces a 1, if one and
  5252.           only one of the inputs is a 1, if both inputs are 1 it will
  5253.           produce a 0.  The XOR truth table follows:
  5254.  
  5255.                              XOR |  0  |  1
  5256.                            ------+-----+-----
  5257.                                0 |  0  |  1
  5258.                            ------+-----+-----
  5259.                                1 |  1  |  0
  5260.  
  5261.           This can sometimes be easier to understand and picture when you
  5262.           think of it like this: the XOR operator produces a 1 for a result
  5263.           whenever the two bits being compared are different from each
  5264.           other.  If the two bits are the same, the answer is 0, if the two
  5265.           bits are different, the answer is 1.
  5266.  
  5267.  
  5268.           SHL and SHR - The Shift Left and Shift Right operators do exactly
  5269.           what their names imply, they shift a value left or right.  For
  5270.           instance:
  5271.  
  5272.                                take the value: 00001111
  5273.                        shift it left 4 places: 11110000
  5274.                  then shift it right 2 places: 00111100
  5275.  
  5276.  
  5277.           One interesting aspect to these operators is that they can be
  5278.           used as very fast multiplication or division operators.  Shift
  5279.           Left 1 place is the same as multiplying by 2, Shift Left 2 is the
  5280.           same as multiplying by 4, shift left 3 is the same as multiplying
  5281.           by 8, and so forth.  Shifting right is the same except the effect
  5282.           is like dividing by 2, 4, 8, etc., rather than multiplying.
  5283.  
  5284.           There are two similar instructions called Shift Arithmetic Left
  5285.           (SAL) and Shift Arithmetic Right (SAR).  These are very similar
  5286.           to the shift instructions except the value of the sign bit is
  5287.           retained throughout the shift operation.  As with the other
  5288.           operators, the best way to see how this works is to fire up
  5289.           ProLite's Calculator and tinker with a few examples.  This way
  5290.           you'll be able to see first hand what these operators actually
  5291.           do.
  5292.  
  5293.           Now let's take a brief look at some of the rotate operations.
  5294.           The rotate operations are very similar to the shift instructions.
  5295.           Understanding the differences is really a matter of considering
  5296.           what happens when a bit is shifted off of one end of a number.
  5297.           When shifting, if you shift a bit right off the end, it is no
  5298.           longer a part of your value.  The rotate operations deal with
  5299.           this a little differently.
  5300.  
  5301.  
  5302.  
  5303.  
  5304.           Bits and Bytes; A Brief Tutorial                         85 of 94
  5305.  
  5306.  
  5307.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  5308.  
  5309.  
  5310.           The rotate operations function just like their name implies.  The
  5311.           rotate operations shift values in the registers, but instead of
  5312.           losing the bit that comes off the end, it is rotated around and
  5313.           inserted into the other end of the register.  Something like
  5314.           this:
  5315.  
  5316.  
  5317.                      |---->--------------------------->----|
  5318.                      |                                     |
  5319.             |----|   |  |-------------------------------|  |
  5320.             | CY |<-----| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |<-|
  5321.             |----|      |-------------------------------|
  5322.  
  5323.                                      Rotate Left
  5324.  
  5325.  
  5326.           At the same time that the bit is rotated around to the other end,
  5327.           it is also placed in the carry flag (a particular bit position
  5328.           within the "flags" register).  Both the Rotate Left (ROL) and
  5329.           Rotate Right (ROR) instructions work by taking the bit that
  5330.           "falls off of the end" and rotating it around to be put right
  5331.           back into the other end of the register.
  5332.  
  5333.           Another instruction of this type is the Rotate through the Carry
  5334.           instruction (RCL and RCR).  It is very similar to the regular
  5335.           rotate instruction, except that the bit that comes off the end is
  5336.           passed through the carry flag.  In other words, the value that
  5337.           comes in one end of the register is the value that was previously
  5338.           in the carry flag.  Here's how it would look:
  5339.  
  5340.             |----------------------->-----------------------|
  5341.             |                                               |
  5342.             |  |----|   |-------------------------------|   |
  5343.             |<-| CY |<--| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |<--|
  5344.                |----|   |-------------------------------|
  5345.  
  5346.                       Rotate through the Carry Left
  5347.  
  5348.  
  5349.  
  5350.             |-----------------------<-----------------------|
  5351.             |                                               |
  5352.             |  |----|   |-------------------------------|   |
  5353.             |->| CY |-->| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |->-|
  5354.                |----|   |-------------------------------|
  5355.  
  5356.                       Rotate through the Carry Right
  5357.  
  5358.           How do you use such strange operations when you are programming?
  5359.           Well, as you start getting more involved with using MS-DOS or
  5360.           your ROM BIOS, you will more and more frequently find the need to
  5361.  
  5362.  
  5363.           Bits and Bytes; A Brief Tutorial                         86 of 94
  5364.  
  5365.  
  5366.           Appendix A      - Programmer's Productivity Pack Lite Lite 1.01 -
  5367.  
  5368.  
  5369.           compare bit patterns, to find out if a particular bit is set in a
  5370.           number, and even to shift the bits around in order to see what
  5371.           they really represent.
  5372.  
  5373.           As your programs become more intimate with the hardware of the
  5374.           computer, your need to understand and be able to use other
  5375.           numbering systems will grow as well.  This is especially true
  5376.           when you program in languages like "C" or "Turbo Pascal", where
  5377.           much can be done when you are able to work with binary,
  5378.           hexadecimal or octal numbers.  If you deal with assembly language
  5379.           then you know by experience what we're talking about.
  5380.  
  5381.           We certainly hope that this has answered your questions, and that
  5382.           ProLite's Programmer's Calculator will make your programming a
  5383.           little easier and much more productive.
  5384.  
  5385.  
  5386.  
  5387.  
  5388.  
  5389.  
  5390.  
  5391.  
  5392.  
  5393.  
  5394.  
  5395.  
  5396.  
  5397.  
  5398.  
  5399.  
  5400.  
  5401.  
  5402.  
  5403.  
  5404.  
  5405.  
  5406.  
  5407.  
  5408.  
  5409.  
  5410.  
  5411.  
  5412.  
  5413.  
  5414.  
  5415.  
  5416.  
  5417.  
  5418.  
  5419.  
  5420.  
  5421.  
  5422.           Bits and Bytes; A Brief Tutorial                         87 of 94
  5423.  
  5424.  
  5425.           Appendix B      - Programmer's Productivity Pack Lite Lite 1.01 -
  5426.  
  5427.  
  5428.                                      ------------
  5429.                                       Appendix B
  5430.                                      ------------
  5431.  
  5432.  
  5433.           Understanding Two's Complement Numbers:
  5434.           =======================================
  5435.  
  5436.           When manipulating signed values, your computer must be able to
  5437.           tell the difference between a positive and a negative number.  It
  5438.           does this through the use of a "sign bit." The leftmost bit is
  5439.           the sign bit.  When this leftmost bit is a zero (0) the number is
  5440.           positive, when that bit is a one (1) the number is negative.  Of
  5441.           course, when you are treating a number as an UNsigned value, the
  5442.           leftmost bit is just a part of the number, and all values will be
  5443.           considered positive.
  5444.  
  5445.           There's a little more to negative numbers than just a sign bit.
  5446.           To your computer, negative numbers are actually what is called
  5447.           the "two's complement" of positive numbers.  While this may sound
  5448.           complicated, it is actually very simple and reasonable.  Here is
  5449.           a brief explanation of what "two's complement" really means, and
  5450.           a simple example to illustrate how it actually works.
  5451.  
  5452.           Let's use an 8 bit value for the sake of simplicity, and the
  5453.           number 5.  In binary, the number 5 looks like this:
  5454.  
  5455.                                 00000101
  5456.  
  5457.           Now, to obtain the two's complement of that number, we must do
  5458.           two things.  First we must complement each bit, simply change
  5459.           each 1 to a 0, and each 0 to a 1.  In essence we are just
  5460.           reversing each digit.  This is called the one's complement.  Here
  5461.           is what our results will look like:
  5462.  
  5463.                         Before changing: 00000101
  5464.                          After changing: 11111010
  5465.  
  5466.           A quick way to do this using ProLite's Calculator is to use the
  5467.           "NOT" operator.  It will instantly show you the one's complement
  5468.           of the current value.
  5469.  
  5470.           The next (and final) step we must perform is just as easy.
  5471.           Simply add 1 to the number, like this:
  5472.  
  5473.  
  5474.                                   11111010
  5475.                                  +       1
  5476.                                  _________
  5477.  
  5478.                                   11111011
  5479.  
  5480.  
  5481.           Two's Complement Numbers                                 88 of 94
  5482.  
  5483.  
  5484.           Appendix B      - Programmer's Productivity Pack Lite Lite 1.01 -
  5485.  
  5486.  
  5487.           That is the binary representation of -5.  We have just converted
  5488.           a positive 5 to a negative 5 in two simple steps.  As you might
  5489.           imagine, those two steps are exactly the kind of thing your
  5490.           computer is good at, and can do very quickly.  By using this
  5491.           technique, the computer is able to subtract one number from
  5492.           another simply by adding the two's complement of the value to the
  5493.           first value.  In this way the processor is able to perform two
  5494.           different kinds of math using basically the same internal
  5495.           circuitry.
  5496.  
  5497.           Just to show that this really does work, let's change the
  5498.           negative 5 back into a positive 5, using the same steps.  Here
  5499.           goes:
  5500.  
  5501.                      Before changing (-5): 11111011
  5502.  
  5503.                            After changing: 00000100
  5504.  
  5505.                                Now, add 1: 00000100
  5506.                                           +       1
  5507.                                           ---------
  5508.                                            00000101
  5509.  
  5510.           There you have it!  We've converted 5 to -5 and back to 5, using
  5511.           the same technique employed by your computer.  With this
  5512.           information under your belt, it will be much easier to understand
  5513.           overflow flags and the like when you are working on the assembly
  5514.           language level.
  5515.  
  5516.           In 8086/8088 assembly language, the "NEG" instruction performs
  5517.           the two's complement for you.  The Programmer's Calculator
  5518.           produces the same result with the "Change Sign" command.
  5519.  
  5520.  
  5521.  
  5522.  
  5523.  
  5524.  
  5525.  
  5526.  
  5527.  
  5528.  
  5529.  
  5530.  
  5531.  
  5532.  
  5533.  
  5534.  
  5535.  
  5536.  
  5537.  
  5538.  
  5539.  
  5540.           Two's Complement Numbers                                 89 of 94
  5541.  
  5542.  
  5543.           Appendix C      - Programmer's Productivity Pack Lite Lite 1.01 -
  5544.  
  5545.  
  5546.                                      ------------
  5547.                                       Appendix C
  5548.                                      ------------
  5549.  
  5550.  
  5551.           What is Falk Data Systems?
  5552.           ==========================
  5553.  
  5554.           Falk Data Systems is a small software company owned and operated
  5555.           by Bob Falk.
  5556.  
  5557.           At Falk Data Systems we believe that the PRIMARY purpose of
  5558.           business is service, not profit.  This concept is fundamental to
  5559.           our approach to product development, production and marketing.
  5560.  
  5561.           Falk Data Systems has been producing top quality computer
  5562.           software at reasonable prices, continuously, since 1987.
  5563.  
  5564.           Please feel free to contact me (Bob Falk) at any time if you have
  5565.           any questions, comments or suggestions.  I can be reached by mail
  5566.           at the following address:
  5567.  
  5568.              Bob Falk
  5569.              Falk Data Systems
  5570.              5322 Rockwood Court
  5571.              El Paso, Texas  79932-2412
  5572.              U.S.A.
  5573.  
  5574.           I can also be reached by voice or electronically as follows:
  5575.  
  5576.              Voice:        (915) 584-7670
  5577.              FAX:          (915) 584-1540
  5578.  
  5579.              CompuServe:   71420,2431
  5580.  
  5581.              Internet:     71420.2431@COMPUSERVE.COM
  5582.  
  5583.  
  5584.           Other Products From Falk Data Systems:
  5585.           ======================================
  5586.  
  5587.           Please refer to the PRODUCTS.DOC text file for a complete list of
  5588.           other products available from Falk Data Systems.
  5589.  
  5590.  
  5591.  
  5592.  
  5593.  
  5594.  
  5595.  
  5596.  
  5597.  
  5598.  
  5599.           Other Products From Falk Data Systems                    90 of 94
  5600.  
  5601.  
  5602.                                    ---  INDEX  ---
  5603.  
  5604.  
  5605.  
  5606.  
  5607.  
  5608.  
  5609.  
  5610.                                         Index
  5611.  
  5612.  
  5613.           A                                  Circular queue See: Linked
  5614.           Add 42                               list
  5615.           Advanced options menu 74           Clear All (^A) 39, 41, 42
  5616.           Alt-Q 65                           Clear Entry (^E) 39, 43
  5617.           AND 43, 83                         Click sound 74
  5618.           ANSWERS.DOC 9                      Clipper 55, 57
  5619.           ASCII and Color Attribute          Color attribute set 66
  5620.             Chart 46                         Colors menu 65
  5621.             Reference Guide 49-51            Command line
  5622.             Tutorial 47-48                     DOS 16
  5623.           ASP 2                              Command line parameters 21,
  5624.             Ombudsman 2                        62, 64
  5625.           Assembly language 29, 36, 45,        -U 21
  5626.             89                                 ProLite 16
  5627.           Attachments 45, 49, 51, 59              -? 20
  5628.           AUTOEXEC.BAT 24                         -D 17
  5629.                                                   -E 17
  5630.           B                                       -H 18
  5631.           Background task 9, 20, 55               -M 18
  5632.           Batch files 24                          -N 18
  5633.           BCD See: Binary Coded Decimal           -P 19
  5634.           Beep Sound 73                           -S 19
  5635.           Benefits 2                              -T 18
  5636.           Binary Coded Decimal 45                 -U 19
  5637.           Binary format 28, 30, 34, 36,           -X 19
  5638.             37, 38                           Communications programs 15
  5639.           Binary numbers 69, 79, 80, 88      CompuServe 2
  5640.           Bit level operations 43            Conflicts with other TSR's 23
  5641.           Bit manipulation facility 31,      Ctrl-@ 38
  5642.             39                               Current value 39, 41, 43
  5643.           Bits 31, 39, 43, 79                Custom attribute set 66
  5644.           Blank screen 40, 47, 60, 77        Custom colors menu 67
  5645.           Bytes 79, 82, 88                   Customizing program See:
  5646.                                                PCustom
  5647.           C
  5648.           Calculator and Attachments 27,     D
  5649.             73                               dBASE 52, 55
  5650.           Calculator menu 36, 69             DEBUG 16
  5651.           Cancel Changes 63, 65, 78          Decimal format 28, 30, 31, 34,
  5652.           Carry flag 44, 86                    37, 80
  5653.           Change Bits (^C) 31, 39            Decimal point 42, 83
  5654.           Change Hot Key 33, 38, 73          Delete Digit 43
  5655.           Change Sign (^-) 39, 84, 89        DESQview 9, 16, 20
  5656.  
  5657.  
  5658.           Falk Data Systems                                        91 of 94
  5659.  
  5660.  
  5661.                                    ---  INDEX  ---
  5662.  
  5663.  
  5664.           Disable disk parking 40              Floppy disk 10
  5665.           Divide 42                            Hard disk 10
  5666.           DOS ERRORLEVEL 24                  Integer division 42
  5667.           DOS Shell 14, 15                   Intermediate value 39, 41, 43
  5668.           DOS version 3.0 14                 ISR 15
  5669.           Double word 82
  5670.           Dual monitor systems 6, 11         K
  5671.                                              Keyboard 12
  5672.           E                                  Keyboard interrupt 13, 42
  5673.           EDLIN 16                           KeyRef 46, 52
  5674.           EMS memory 6, 14                   Keystroke Reference Center 46,
  5675.           Enhanced keyboard 13, 42, 55,        70
  5676.             58                                 Reference Guide 55-59
  5677.           Error messages 24, 70                Tutorial 52-54
  5678.           Error sound 63, 74
  5679.           ERRORLEVEL 24                      L
  5680.           Exchange Double Words See:         License 1
  5681.             XCHG DD                          Linked list See: Recursion
  5682.           Exchange Words See: XCHG DW        Logical operations 43, 83
  5683.           Exclusive OR See: XOR
  5684.           Exit PCustom 65, 78                M
  5685.           Exit the ASCII Chart 48, 51        Marketing 90
  5686.           Exit the Calculator 40, 41         Mathematical operations 41
  5687.           Exit The Keystroke Reference       Memory
  5688.             Center 53, 59                      EMS 6, 14
  5689.           Extended characters 50               high 15
  5690.                                                XMS 6, 7, 14
  5691.           F                                  Memory requirements 7
  5692.           Final result 41, 43                Memory-resident version 7, 40,
  5693.           FoxBase 55                           55
  5694.           Fractions 83                       Memory slots 40, 41
  5695.                                              Miscellaneous 76
  5696.           G                                  Missing overlay file 25
  5697.           Graphics mode 15, 25               Modes See: Video modes
  5698.           Gray scale attribute set 66        Modifier keys 12, 38
  5699.                                              Modulus 42, 43
  5700.           H                                  Monitors
  5701.           Hard Disk 14                         Black-and-white 11, 62, 64,
  5702.           Hardware Interrupt Handlers 15       67
  5703.           Hexadecimal format 12, 28, 31,       Color 11, 49, 66
  5704.             34, 37, 39                         Gas plasma 11, 62, 64
  5705.           High memory 15                       Gray scale 11, 62, 64, 66,
  5706.           Hot key                              67
  5707.             Tips 38                            LCD 11, 62, 64
  5708.           Hot Keys menu 72                     Monochrome 11, 66, 67
  5709.                                              Moving the display 45, 58
  5710.           I                                  Multiply 42
  5711.           INKEY() 52, 55, 57                 Multitasking system 15, 20, 55
  5712.           Insert a Value (^I) 40             Multitasking version 7, 9, 20,
  5713.           Installation 9                       41
  5714.  
  5715.  
  5716.  
  5717.           Falk Data Systems                                        92 of 94
  5718.  
  5719.  
  5720.                                    ---  INDEX  ---
  5721.  
  5722.  
  5723.           N                                    Reference Guide 34-46
  5724.           Name                                 Tutorial 27-33
  5725.             changing 21                      ProLite 14
  5726.           NEG 84, 89
  5727.           Negative to positive 39            Q
  5728.           Network shells 15                  QEMM 15
  5729.           Nibble 82                          QRAM 15
  5730.           Non-Registered Users 3             QuickSilver 55
  5731.           Normal messages 71                 Quit PCustom 65, 78
  5732.           NOT 43, 84, 88                     Quit the ASCII Chart 48, 51
  5733.           Numeric Format 37, 75              Quit the Calculator 40, 41
  5734.             Switching 31, 37                 Quit The Keystroke Reference
  5735.           Numeric Mode 39, 75                  Center 53, 59
  5736.           NumLock 13, 28, 42, 50, 53
  5737.                                              R
  5738.           O                                  RAM 7
  5739.           Octal format 28, 34, 37            RAM Disk 14
  5740.           Ombudsman 2                        Range of values 34
  5741.           OmniView 6, 9, 20                  RCL 44, 86
  5742.           One's complement 88                RCR 44, 86
  5743.           OR 43, 84                          Read/Write heads 40
  5744.           Overlay file 25, 26                Recursion See: Circular queue
  5745.                                              Registered Users 1, 3
  5746.           P                                  Registration 1, 3
  5747.           Park Disk(s) and Blank Screen      Remainder 43
  5748.             40, 47, 51, 60, 60-61            Rename 21
  5749.           PCustom 62                         Returning to the Calculator
  5750.             Cancel Changes 78                  46, 51, 59
  5751.             Reference Guide 64-78            ROL 44, 86
  5752.             Save changes 78                  ROR 44, 86
  5753.             Tutorial 62-63                   Rotate Left See: ROL
  5754.           PCustom.EXE 9                      Rotate Right See: ROR
  5755.           PCustom menus                      Rotate through the Carry Left
  5756.             Advanced options menu 74           See: RCL
  5757.             Colors menu 65                   Rotate through the Carry Right
  5758.             Custom colors menu 67              See: RCR
  5759.             Exit PCustom menu 78
  5760.             Hot Keys menu 72                 S
  5761.             Main menu 65                     SAL 45, 85
  5762.             Sound effects menu 73            SAR 45, 85
  5763.           Pick list 40                       Save a Value (^S) 40
  5764.           Pop-Up DOS Shell See: DOS          Scan code 52, 55, 57
  5765.             Shell                            Screen Blank
  5766.             Customizing 73                     Clock 72
  5767.           PopCalc 24                         Screen Refresh (^R) 41
  5768.           Portability Note 52, 53, 58        ScrollLock 53
  5769.           Positive to negative 39            Shareware 1, 2
  5770.           PRINT 23                           Shift Arithmetic Left See: SAL
  5771.           ProComm 15                         Shift Arithmetic Right See:
  5772.           Programmer's Calculator              SAR
  5773.             Customizing 68, 74               Shift keys 12
  5774.  
  5775.  
  5776.           Falk Data Systems                                        93 of 94
  5777.  
  5778.  
  5779.                                    ---  INDEX  ---
  5780.  
  5781.  
  5782.           Shift Left See: SHL                Two seconds 25
  5783.           Shift Right See: SHR
  5784.           SHL 44, 85                         U
  5785.           Show Result 43                     Unblank screen 40
  5786.           SHR 44, 85                         Unload from memory 41
  5787.           Sidekick version 21                Unloading ProLite 21
  5788.           Sign bit 88                        Unpark disk 40
  5789.           Signed mode 31, 34, 36, 39, 41     Unsafe to pop up 25
  5790.           Signed numbers 82, 88              Unsafe to unload 33
  5791.           Sound effects menu 73              Unsigned mode 31, 35, 36, 39,
  5792.           Stand-alone version 14, 20           41
  5793.           Starting PCustom 64                Unsigned numbers 82, 88
  5794.           Status bytes 53                    Updates 3
  5795.           Subtract 42
  5796.           Swapping 14                        V
  5797.           Swapping Message 72                Video
  5798.           System requirements 6                Adapters 6
  5799.                                              Video modes
  5800.           T                                    Display height 12
  5801.           TAPCIS 15                            Display width 12
  5802.           TaskView 6, 9, 20                    Graphics 12, 15
  5803.           Technical Support 1                  Text 12
  5804.           Text mode 25                       Virtual screen 20
  5805.           386MAX 15
  5806.           TIP 38, 79                         W
  5807.           Toggle                             Warranty 1
  5808.             Bits 39                          Word 82
  5809.             Modes 36, 41
  5810.           Toggle Sign Mode (^T) 41           X
  5811.           Truth tables 83-85                 XCHG DD 45
  5812.           Try-before-you-buy 1               XCHG DW 45
  5813.           Two line cursor 77                 XMS memory 6, 7, 14
  5814.           Two's complement 88, 89            XOR 44, 85
  5815.  
  5816.  
  5817.  
  5818.  
  5819.  
  5820.  
  5821.  
  5822.  
  5823.  
  5824.  
  5825.  
  5826.  
  5827.  
  5828.  
  5829.  
  5830.  
  5831.  
  5832.  
  5833.  
  5834.  
  5835.           Falk Data Systems                                        94 of 94
  5836.  
  5837.